blob: 8efae33b4f6d613cace58cd5080001eb37613979 (
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
29
30
31
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"
|