blob: 8d1295caef2ec5cec9dcc5b4e8093e51120b4337 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#! /bin/sh
../gcc/configure \
--disable-bootstrap \
--enable-languages=c,c++ \
--disable-multiarch \
--disable-multilib \
--enable-shared \
--disable-libssp \
--disable-libgomp \
--disable-libsanitizer \
--disable-libcilkrts \
--enable-nls \
--disable-libstdcxx-pch \
--disable-libstdcxx-debug \
--prefix=/$1 \
--enable-plugin \
--build=$1 \
--host=$1 \
--target=$1 \
--enable-cxx-flags=-fPIC \
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
|