diff options
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" |