summaryrefslogtreecommitdiff
path: root/binary/linux-gnu/gcc-configure
diff options
context:
space:
mode:
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