diff options
author | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-03 21:09:21 +0000 |
---|---|---|
committer | bstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-06-03 21:09:21 +0000 |
commit | d0b5e5dee29ead5a6c8487de71ba96eb1af221dd (patch) | |
tree | ac3ecae2f60dce82ebc2f122c3ed1c903cd93233 /gcc/melt-cc-script.proto | |
parent | 5aad3a1f837387a283a2e99c470ff0fa6e755ac1 (diff) | |
download | gcc-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.proto | 8 |
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.* ;; |