libafssetpag-temp-fix-20051018
authorJim Rees <rees@umich.edu>
Tue, 18 Oct 2005 16:53:06 +0000 (16:53 +0000)
committerJim Rees <rees@umich.edu>
Tue, 18 Oct 2005 16:53:06 +0000 (16:53 +0000)
Define SHLIB_LINKER for [fno]bsd
Don't try to build LIBAFSSETPAG for [fno]bsd

src/cf/osconf.m4
src/sys/Makefile.in

index 6adde05..8e834de 100644 (file)
@@ -208,6 +208,7 @@ case $AFS_SYSNAME in
                MT_LIBS="-pthread"
                PAM_CFLAGS="-O2 -pipe -fPIC"
                SHLIB_LDFLAGS="-shared -Xlinker -x"
+               SHLIB_LINKER="${MT_CC} -shared"
                TXLIBS="-lncurses"
                XCFLAGS="-O2 -pipe"
                YACC="byacc"
@@ -219,6 +220,7 @@ case $AFS_SYSNAME in
                MT_LIBS="-lpthread" # XXX -pthread soon
                PAM_CFLAGS="-O2 -pipe -fPIC"
                SHLIB_LDFLAGS="-shared -Xlinker -x"
+               SHLIB_LINKER="${MT_CC} -shared"
                TXLIBS="/usr/lib/libcurses.so"
                XCFLAGS="-O2 -pipe"
                YACC="yacc"
@@ -230,6 +232,7 @@ case $AFS_SYSNAME in
                MT_LIBS=""
                PAM_CFLAGS="-O2 -pipe -fPIC"
                SHLIB_LDFLAGS="-shared -Xlinker -x"
+               SHLIB_LINKER="${MT_CC} -shared"
                TXLIBS="/usr/lib/libcurses.so"
                XCFLAGS="-O2 -pipe"
                YACC="bison -y"
@@ -378,6 +381,7 @@ case $AFS_SYSNAME in
                PAM_CFLAGS="-O2 -pipe -fpic"
                SHLIB_CFLAGS="-fpic"
                SHLIB_LDFLAGS="-shared -Xlinker -x"
+               SHLIB_LINKER="${MT_CC} -shared"
                TXLIBS="/usr/lib/libcurses.a"
                XCFLAGS="-O2"
                YACC="yacc"
index 5933eea..46ea938 100644 (file)
@@ -62,6 +62,8 @@ ${LIBAFSSETPAG}: ${SHLIBOBJS}
        sun*_5*) \
            ${SHLIB_LINKER} -h libafssetpag.so.${LIBAFSSETPAGMAJOR} \
                -o ${LIBAFSSETPAG} ${SHLIBOBJS};; \
+       *bsd*) \
+           touch ${LIBAFSSETPAG};; \
        *) \
            ${SHLIB_LINKER} -o ${LIBAFSSETPAG} ${SHLIBOBJS};; \
        esac