diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-04-19 14:03:04 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-04-19 14:03:04 +0000 |
commit | 5beff7c6c125768c9665bde008f2cbb756f6821f (patch) | |
tree | d0b354752e9747698ee3a7c6d2a400a64f216c27 /bin/mklib | |
parent | 12ad488e598499cf17a619b221e8e4afea363d02 (diff) |
updates for GNU/Hurd (bug 6657)
Diffstat (limited to 'bin/mklib')
-rwxr-xr-x | bin/mklib | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -180,7 +180,7 @@ fi # case $ARCH in - 'Linux' | 'OpenBSD') + 'Linux' | 'OpenBSD' | 'GNU' | GNU/*) # we assume gcc if [ "x$LINK" = "x" ] ; then @@ -223,11 +223,13 @@ case $ARCH in FINAL_LIBS=${LIBNAME}.a else LIBNAME="lib${LIBNAME}" # prefix with "lib" - if [ $ARCH = 'Linux' ] ; then + case $ARCH in 'Linux' | 'GNU' | GNU/*) OPTS="-Xlinker -Bsymbolic -shared -Wl,-soname,${LIBNAME}.so.${MAJOR}" - else + ;; + *) OPTS="-shared -Wl,-soname,${LIBNAME}.so.${MAJOR}" - fi + ;; + esac if [ $EXPORTS ] ; then #OPTS="${OPTS} -Xlinker --retain-symbols-file ${EXPORTS}" # Make the 'exptmp' file for --version-script option |