Pass -shared when linking some shared libraries
[openafs.git] / src / cf / osconf.m4
index b737041..69fd19c 100644 (file)
@@ -51,7 +51,6 @@ case $AFS_SYSNAME in
                PAM_OPTMZ=-O2
                PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
                SHLIB_CFLAGS="-fPIC"
-               SHLIB_LDFLAGS="-shared -Xlinker -x"
                SHLIB_LINKER="${CC} -shared"
                ;;
 
@@ -61,7 +60,6 @@ case $AFS_SYSNAME in
                PAM_OPTMZ=-O2
                PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
                SHLIB_CFLAGS="-fPIC"
-               SHLIB_LDFLAGS="-shared -Xlinker -x"
                SHLIB_LINKER="${CC} -shared"
                ;;
 
@@ -80,7 +78,6 @@ case $AFS_SYSNAME in
                PAM_LIBS="/usr/lib/libpam.1"
                RANLIB="/usr/bin/ranlib"
                RM="/bin/rm"
-               SHLIB_LDFLAGS="-b -Bsymbolic"
                SHLIB_SUFFIX="sl"
                VFSCK_CFLAGS="-D_FILE64"
                XCFLAGS0="-ldld -lc -Wp,-H200000 -Wl,-a,archive -DAUTH_DBM_LOG +z -Wl,+k -D_LARGEFILE64_SOURCE"
@@ -105,7 +102,6 @@ case $AFS_SYSNAME in
                PAM_LIBS="/usr/lib/libpam.1"
                RANLIB="/usr/bin/ranlib"
                RM="/bin/rm"
-               SHLIB_LDFLAGS="-b -Bsymbolic"
                SHLIB_SUFFIX="sl"
                VFSCK_CFLAGS="-I/usr/old/usr/include -D_FILE64"
                XCFLAGS0="-ldld -lc -Wp,-H200000 -Wl,-a,archive -DAUTH_DBM_LOG +z -Wl,+k -D_LARGEFILE64_SOURCE"
@@ -131,7 +127,6 @@ case $AFS_SYSNAME in
                PAM_LIBS="/usr/lib/hpux32/libpam.so"
                RANLIB="/usr/bin/ranlib"
                RM="/bin/rm"
-               SHLIB_LDFLAGS="-b -Bsymbolic"
                SHLIB_SUFFIX="sl"
                VFSCK_CFLAGS="-I/usr/old/usr/include -D_FILE64"
                XCFLAGS0="-ldld -lc -Wp,-H200000 -Wl,-a,archive_shared -DAUTH_DBM_LOG +z -Wl,+k -D_LARGEFILE64_SOURCE"
@@ -146,7 +141,6 @@ case $AFS_SYSNAME in
                MT_CFLAGS='-pthread -D_REENTRANT'
                PAM_OPTMZ=-O2
                PAM_CFLAGS="-pipe -fPIC"
-               SHLIB_LDFLAGS="-shared -Xlinker -x"
                SHLIB_LINKER="${CC} -shared"
                XCFLAGS="-pipe"
                ;;
@@ -155,7 +149,6 @@ case $AFS_SYSNAME in
                MT_CFLAGS='-pthread -D_REENTRANT'
                PAM_OPTMZ=-O2
                PAM_CFLAGS="-pipe -fPIC"
-               SHLIB_LDFLAGS="-shared -Xlinker -x"
                SHLIB_LINKER="${CC} -shared"
                XCFLAGS="-pipe"
                ;;
@@ -163,7 +156,6 @@ case $AFS_SYSNAME in
        amd64_fbsd_*)
                MT_CFLAGS='-pthread -D_REENTRANT'
                PAM_CFLAGS="-O2 -pipe -fPIC"
-               SHLIB_LDFLAGS="-shared -Xlinker -x"
                SHLIB_LINKER="${CC} -shared"
                XCFLAGS="-O2 -pipe -fPIC"
                ;;
@@ -173,7 +165,6 @@ case $AFS_SYSNAME in
                PAM_OPTMZ=-O2
                PAM_CFLAGS="-pipe -fPIC"
                SHLIB_CFLAGS="-fPIC"
-               SHLIB_LDFLAGS="-shared -Xlinker -x"
                SHLIB_LINKER="${CC} -shared"
                XCFLAGS="-pipe"
                ;;
@@ -182,7 +173,6 @@ case $AFS_SYSNAME in
                MT_LIBS='${XLIBS}'
                PAM_OPTMZ=-O2
                PAM_CFLAGS="-pipe -fPIC"
-               SHLIB_LDFLAGS="-shared -Xlinker -x"
                SHLIB_LINKER="${CC} -shared"
                XCFLAGS="-pipe"
                ;;
@@ -193,7 +183,6 @@ case $AFS_SYSNAME in
                PAM_OPTMZ=-O2
                PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
                SHLIB_CFLAGS="-fPIC"
-               SHLIB_LDFLAGS="-shared -Xlinker -x"
                XCFLAGS="-G0"
                SHLIB_LINKER="${CC} -shared"
                ;;
@@ -205,7 +194,6 @@ case $AFS_SYSNAME in
                PAM_OPTMZ=-O2
                PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
                SHLIB_CFLAGS="-fPIC"
-               SHLIB_LDFLAGS="-shared -Xlinker -x"
                SHLIB_LINKER="${CC} -shared"
                ;;
 
@@ -213,7 +201,6 @@ case $AFS_SYSNAME in
                MT_CFLAGS='-pthread -D_REENTRANT'
                PAM_OPTMZ=-O2
                PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
-               SHLIB_LDFLAGS="-shared -Xlinker -x"
                SHLIB_CFLAGS="-fPIC"
                SHLIB_LINKER="${CC} -shared -m64"
                XCFLAGS="-m64"
@@ -231,7 +218,6 @@ case $AFS_SYSNAME in
                OPTMZ=-O2
                PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
                SHLIB_CFLAGS="-fPIC"
-               SHLIB_LDFLAGS="-shared -Xlinker -x"
                SHLIB_LINKER="${CC} -shared"
                ;;
 
@@ -244,7 +230,6 @@ case $AFS_SYSNAME in
                PAM_OPTMZ=-O2
                PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
                SHLIB_CFLAGS="-fPIC"
-               SHLIB_LDFLAGS="-shared -Xlinker -x"
                SHLIB_LINKER="${CC} -shared"
                ;;
 
@@ -256,7 +241,6 @@ case $AFS_SYSNAME in
                PAM_OPTMZ=-O2
                PAM_CFLAGS="-pipe -fpic"
                SHLIB_CFLAGS="-fpic"
-               SHLIB_LDFLAGS="-shared -Xlinker -x"
                SHLIB_LINKER="${CC} -shared"
                XCFLAGS=
                ;;
@@ -355,7 +339,6 @@ case $AFS_SYSNAME in
                PAM_OPTMZ=-O2
                PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
                SHLIB_CFLAGS="-fPIC"
-               SHLIB_LDFLAGS="-shared -Xlinker -x"
                SHLIB_LINKER="${CC} -shared"
                ;;
 
@@ -405,7 +388,6 @@ case $AFS_SYSNAME in
                PAM_OPTMZ=-O2
                PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
                SHLIB_CFLAGS="-fPIC"
-               SHLIB_LDFLAGS="-shared -Xlinker -x"
                SHLIB_LINKER="${CC} -shared"
                ;;
 
@@ -417,7 +399,6 @@ case $AFS_SYSNAME in
                PAM_OPTMZ=-O
                PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
                SHLIB_CFLAGS="-fPIC"
-               SHLIB_LDFLAGS="-shared -Xlinker -x -Xlinker -Bsymbolic"
                OPTMZ=-O
                XCFLAGS="-D__s390x__"
                SHLIB_LINKER="${CC} -shared"
@@ -478,7 +459,6 @@ case $AFS_SYSNAME in
                PAM_OPTMZ=-O2
                PAM_CFLAGS="-Dlinux -DLINUX_PAM -fPIC"
                SHLIB_CFLAGS="-fPIC"
-               SHLIB_LDFLAGS="-shared -Xlinker -x"
                XCFLAGS64="-m64"
                XLDFLAGS64="-m64"
                SHLIB_LINKER="${CC} -shared"
@@ -491,7 +471,6 @@ case $AFS_SYSNAME in
                PAM_CFLAGS="-KPIC"
                PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
                SHLIB_CFLAGS="-KPIC"
-               SHLIB_LDFLAGS="-G -Bsymbolic"
                XCFLAGS64='${XCFLAGS} -m64'
                XCFLAGS="-dy -Bdynamic"
                XLIBELFA="-lelf"
@@ -530,7 +509,6 @@ case $AFS_SYSNAME in
                PAM_CFLAGS="-KPIC"
                PAM_LIBS="-lc -lpam -lsocket -lnsl -lm"
                SHLIB_CFLAGS="-KPIC"
-               SHLIB_LDFLAGS="-G -Bsymbolic"
                XCFLAGS0="-dy -Bdynamic"
                XCFLAGS64="${XCFLAGS0} -m64"
                XCFLAGS="${XCFLAGS0} ${XARCHFLAGS}"
@@ -705,7 +683,6 @@ AC_SUBST(REGEX_OBJ)
 AC_SUBST(RM)
 AC_SUBST(RXDEBUG)
 AC_SUBST(SHLIB_CFLAGS)
-AC_SUBST(SHLIB_LDFLAGS)
 AC_SUBST(SHLIB_LINKER)
 AC_SUBST(SHLIB_SUFFIX)
 AC_SUBST(VFSCK_CFLAGS)