From d1b1d1f6b9583cd4fb08fb2995a2209cfdf627d2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 15 Feb 2013 09:00:28 +0200 Subject: Add GNU/Linux ODB binary build scripts --- binary/linux-gnu/gcc-configure | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 binary/linux-gnu/gcc-configure (limited to 'binary/linux-gnu/gcc-configure') 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 -- cgit v1.1