summaryrefslogtreecommitdiff
path: root/gcc/melt-cc-script.proto
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-03 21:09:21 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2008-06-03 21:09:21 +0000
commitd0b5e5dee29ead5a6c8487de71ba96eb1af221dd (patch)
treeac3ecae2f60dce82ebc2f122c3ed1c903cd93233 /gcc/melt-cc-script.proto
parent5aad3a1f837387a283a2e99c470ff0fa6e755ac1 (diff)
downloadgcc-d0b5e5dee29ead5a6c8487de71ba96eb1af221dd.tar.gz
2008-06-03 Basile Starynkevitch <basile@starynkevitch.net>
* melt-cc-script.proto: added MELT_EXTRACFLAGS. the untested libtool command has been corrected to use $melt_cflags git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@136334 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/melt-cc-script.proto')
-rw-r--r--gcc/melt-cc-script.proto8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/melt-cc-script.proto b/gcc/melt-cc-script.proto
index 1d6ca8f47dd..b8d9d287b98 100644
--- a/gcc/melt-cc-script.proto
+++ b/gcc/melt-cc-script.proto
@@ -30,6 +30,10 @@ if [ -n "$MELT_CC" ]; then
melt_cc=$MELT_CC
fi
+if [ -n "$MELT_EXTRACFLAGS" ]; then
+ melt_cflags="$melt_cflags $MELT_EXTRACFLAGS"
+fi
+
#set -x
## script invoked by cc1 with two arguments : the generated C source to compile
## and the naked (without suffix) dynamically-loadable stuff to generate
@@ -79,8 +83,8 @@ Linux|SunOS|Solaris)
ls -lt $nakedynstuff.so $csource
;;
*)
- libtool --mode=compile -prefer-pic $melt_cc $csource -I "$melt_headerdir" -o $nakedynstuff.lo;
- libtool --mode=compile -prefer-pic $melt_cc $datf.c -o $datf.lo
+ libtool --mode=compile -prefer-pic $melt_cc $melt_cflags $csource -I "$melt_headerdir" -o $nakedynstuff.lo;
+ libtool --mode=compile -prefer-pic $melt_cc $melt_cflags $datf.c -o $datf.lo
libtool --mode=link -module $melt_cc $makedynstuff.lo $datf.lo -o $nakedynstuff.la
rm -f $datf.*
;;