diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-02-15 09:00:28 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-02-15 09:00:28 +0200 |
commit | d1b1d1f6b9583cd4fb08fb2995a2209cfdf627d2 (patch) | |
tree | b0638edb95713d97945ba2baefffe86b8c0cee83 /binary/linux-gnu/gcc-configure | |
parent | d845f920ec1f5cd6ef5a95366383e74725912441 (diff) |
Add GNU/Linux ODB binary build scripts
Diffstat (limited to 'binary/linux-gnu/gcc-configure')
-rwxr-xr-x | binary/linux-gnu/gcc-configure | 32 |
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 |