diff options
author | Ian Romanick <[email protected]> | 2004-06-25 22:51:39 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2004-06-25 22:51:39 +0000 |
commit | 9eecb03226a534e0fe59973133371b72e7c0d63d (patch) | |
tree | e1cff8862d5631117638abcc8f40750e2367c740 /bin/mklib | |
parent | 74b380b2ec16b387628b4e01f25eca7baf634048 (diff) |
Make sure mklib sees the definition of CC and CXX. Make mklib respect
the definitions of CC and CXX on Linux. This fixed build issues with
sunos5-gcc and build issues on GCC 2.x Linux when CC and CXX are set
to a GCC 3.x compiler.
Diffstat (limited to 'bin/mklib')
-rwxr-xr-x | bin/mklib | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/mklib b/bin/mklib index a6e9a089f77..9c1e0cdc960 100755 --- a/bin/mklib +++ b/bin/mklib @@ -122,9 +122,9 @@ case $ARCH in #OPTS="-shared -Wl,-soname,${LIBNAME}" # soname??? OPTS="-shared" if [ $CPLUSPLUS = 1 ] ; then - LINK="g++" + LINK=$CXX else - LINK="gcc" + LINK=$CC fi rm -f ${LIBNAME} @@ -158,9 +158,9 @@ case $ARCH in echo "mklib: Making" $ARCH "shared library: " ${LIBNAME}.so.${VERSION} if [ $CPLUSPLUS = 1 ] ; then - LINK="g++" + LINK=$CXX else - LINK="gcc" + LINK=$CC fi # rm any old libs |