diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-02-15 09:02:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-02-15 09:02:53 +0200 |
commit | 0c0424b4f321a90028b12beb8959de707224e45e (patch) | |
tree | 767ffadbd487b00fd092b6f4f950477f5a22720b /binary/solaris/gcc-configure | |
parent | d1b1d1f6b9583cd4fb08fb2995a2209cfdf627d2 (diff) |
Add Solaris ODB binary build scripts
Diffstat (limited to 'binary/solaris/gcc-configure')
-rwxr-xr-x | binary/solaris/gcc-configure | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/binary/solaris/gcc-configure b/binary/solaris/gcc-configure new file mode 100755 index 0000000..8efae33 --- /dev/null +++ b/binary/solaris/gcc-configure @@ -0,0 +1,32 @@ +#! /bin/sh + +if test "$2" = "sparc"; then + target_cflags="-O2" +else + target_cflags="-O2 -fPIC" +fi + +../../gcc/configure \ +--disable-bootstrap \ +--enable-languages=c,c++ \ +--disable-multiarch \ +--enable-shared \ +--disable-libssp \ +--disable-libgomp \ +--disable-nls \ +--disable-multilib \ +--disable-libstdcxx-pch \ +--prefix=/$1 \ +--enable-plugin \ +--build=$1 \ +--host=$1 \ +--target=$1 \ +--with-gnu-as \ +--with-as=/usr/sfw/bin/gas \ +--without-gnu-ld \ +--with-ld=/usr/ccs/bin/ld \ +--enable-cxx-flags=-fPIC \ +CFLAGS=-O2 CXXFLAGS=-O2 \ +CFLAGS_FOR_TARGET="$target_cflags" CXXFLAGS_FOR_TARGET="-O2 -fPIC" \ +CPPFLAGS=-I/usr/local/include \ +LDFLAGS="-L/usr/local/lib -s" |