summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-01-14 23:18:47 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-01-14 23:18:47 +0000
commit4b603440f64f0bb1d762c4eae9496d12455cdbb1 (patch)
treed2c8b790e2a6bee8b8a9745e68abd9f48243eb3c /bin
parentae7666385d6bb2885fce2590d4f07c6caa8b3260 (diff)
use -G not -shared for gcc on SunOS
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mklib8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/mklib b/bin/mklib
index af413390d9..984875f2f7 100755
--- a/bin/mklib
+++ b/bin/mklib
@@ -151,12 +151,14 @@ case $ARCH in
'SunOS')
LIBNAME="lib${LIBNAME}.so"
echo "mklib: Making SunOS shared library: " ${LIBNAME}
+ # XXX OPTS for gcc should be -shared, but that doesn't work.
+ # Using -G does work though.
if [ $CPLUSPLUS = 1 ] ; then
# determine linker and options for C++ code
if [ "x${CXX}" = "xg++" ] ; then
# use g++
LINK="g++"
- OPTS="-shared"
+ OPTS="-G"
elif [ "x${CXX}" = "xCC" ] ; then
# use Sun CC
LINK="CC"
@@ -172,7 +174,7 @@ case $ARCH in
elif [ `type g++` ] ; then
# use g++
LINK="g++"
- OPTS="-shared"
+ OPTS="-G"
else
echo "mklib: warning: can't find C++ comiler, trying CC."
LINK="CC"
@@ -181,7 +183,7 @@ case $ARCH in
elif [ "x${CC}" = "xgcc" ] ; then
# use gcc for linking
LINK="gcc"
- OPTS="-shared"
+ OPTS="-G"
else
# use native Sun linker
LINK="ld"