summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-09-28 16:45:07 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-09-28 16:45:07 +0000
commitdeeb182975579e38b4717614e6a910d05acf08f7 (patch)
tree92033237f6ac3eef85ee9ec0a9a2d363f2630090
parent0b4efc9913ef44557868bbfa07459dc54e94b9ab (diff)
downloadgcc-tarball-baserock/morph-relocatable-static-libstdc++.tar.gz
Try CXXFLAGS for everything in order to a relocatable libstdc++baserock/morph-relocatable-static-libstdc++
-rw-r--r--gcc.morph6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc.morph b/gcc.morph
index eecd181f6c..236499b005 100644
--- a/gcc.morph
+++ b/gcc.morph
@@ -4,13 +4,13 @@
"configure-commands": [
"sed -i 's@\\./fixinc\\.sh@-c true@' gcc/Makefile.in",
"mkdir o",
- "cd o && ../configure --prefix=/usr --enable-clocale=gnu --disable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-libgomp --without-ppl --without-cloog"
+ "cd o && CXXFLAGS=-fPIC ../configure --prefix=/usr --enable-clocale=gnu --disable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-libgomp --without-ppl --without-cloog"
],
"build-commands": [
- "cd o && make CFLAGS=-fPIC"
+ "cd o && CXXFLAGS=-fPIC make"
],
"install-commands": [
- "cd o && make DESTDIR=\"$DESTDIR\" install",
+ "cd o && CXXFLAGS=-fPIC make DESTDIR=\"$DESTDIR\" install",
"for f in `find \"$DESTDIR\" -name libgcc.a`; do EH=\"`echo \"$f\" | sed 's/libgcc/&_eh/'`\" && if [ ! -e \"$EH\" ]; then ln -s libgcc.a \"$EH\"; fi; done",
"ln -s gcc \"$DESTDIR/usr/bin/cc\""
]