$CC and $CXX must be set, otherwise some configure scripts select gcc as defatult compiler
authorjenda
Tue, 24 May 2011 11:39:21 +0200
changeset 75 a80eed27a41f
parent 74 0ff042a1dba1
child 76 45424a9e5ee1
$CC and $CXX must be set, otherwise some configure scripts select gcc as defatult compiler
build-g11n-spec.sh
--- a/build-g11n-spec.sh	Tue May 10 16:58:13 2011 +0200
+++ b/build-g11n-spec.sh	Tue May 24 11:39:21 2011 +0200
@@ -19,9 +19,19 @@
 IPS_VENDORVER=0.${L10N_BUILDNUM:-"155"}
 PUBLISHER=${L10N_PUBLISHER:-"l10n-nightly"}
 
-export CC=/opt/SUNWspro/bin/cc
-export CXX=/opt/SUNWspro/bin/CC
-export MAKE=gmake
+export LC_ALL=C
+export MAKE=${MAKE:-gmake}
+export CC=${CC:-/opt/SUNWspro/bin/cc}
+export CXX=${CXX:-/opt/SUNWspro/bin/CC}
+
+#
+# libtool swallows -norunpath option in $(CXXLINK) cmd
+# add -norunpath in $CXX env value
+# more details:
+#   http://monaco.sfbay.sun.com/detail.jsf?cr=6497744
+#   http://mail.opensolaris.org/pipermail/jds-notify/2007-April/001799.html
+#
+export CXX="$CXX -norunpath"
 
 while getopts pad:l:n option
 do