summaryrefslogtreecommitdiff
path: root/binary/linux-gnu/gcc-configure
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-02-15 09:00:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-02-15 09:00:28 +0200
commitd1b1d1f6b9583cd4fb08fb2995a2209cfdf627d2 (patch)
treeb0638edb95713d97945ba2baefffe86b8c0cee83 /binary/linux-gnu/gcc-configure
parentd845f920ec1f5cd6ef5a95366383e74725912441 (diff)
Add GNU/Linux ODB binary build scripts
Diffstat (limited to 'binary/linux-gnu/gcc-configure')
-rwxr-xr-xbinary/linux-gnu/gcc-configure32
1 files changed, 32 insertions, 0 deletions
diff --git a/binary/linux-gnu/gcc-configure b/binary/linux-gnu/gcc-configure
new file mode 100755
index 0000000..b2872a6
--- /dev/null
+++ b/binary/linux-gnu/gcc-configure
@@ -0,0 +1,32 @@
+#! /bin/sh
+
+extra=
+
+if test "$1" = "x86_64-linux-gnu"; then
+ extra="--libdir=/$1/lib64"
+fi
+
+../../gcc/configure \
+--disable-bootstrap \
+--enable-languages=c,c++ \
+--disable-multiarch \
+--enable-shared \
+--disable-libssp \
+--disable-libgomp \
+--enable-nls \
+--disable-multilib \
+--disable-libstdcxx-pch \
+--prefix=/$1 \
+--enable-plugin \
+--build=$1 \
+--host=$1 \
+--target=$1 \
+--enable-cxx-flags=-fPIC \
+$extra \
+CFLAGS=-O2 CXXFLAGS=-O2 LDFLAGS=-s \
+CFLAGS_FOR_TARGET="-O2 -fPIC" CXXFLAGS_FOR_TARGET="-O2 -fPIC"
+
+
+# --with-sysroot=/x86_64-linux-gnu
+
+#/x86_64-linux-gnu/bin/g++ -v -nodefaultlibs -shared -o libtest.so -fPIC ~/work/c++/sizeof_funds.cxx -Wl,-Bstatic,-lstdc++,-Bdynamic -lgcc -lgcc_eh -lm -lc