]> arthur.barton.de Git - netatalk.git/commitdiff
un-hardcoded -shared, moved into LDSHAREDFLAGS
authorrufustfirefly <rufustfirefly>
Mon, 26 Mar 2001 20:11:53 +0000 (20:11 +0000)
committerrufustfirefly <rufustfirefly>
Mon, 26 Mar 2001 20:11:53 +0000 (20:11 +0000)
configure.in
etc/uams/Makefile.am
etc/uams/uams_krb4/Makefile.am

index 3cc23554670ae834cc291cc4ce1fe4ade5979c7f..416215776abf5e04f10c529bbdf5cc9f06c52e94 100644 (file)
@@ -393,12 +393,17 @@ if test x"$this_os" = "xfreebsd"; then
        AC_MSG_RESULT([ * FreeBSD specific configuration])
        AC_DEFINE(BSD4_4)
        AC_DEFINE(SENDFILE_FLAVOR_BSD)
+
+       dnl ----- Set -shared flag
+       LDSHAREDFLAGS="-shared"
 fi
 
 dnl ----- Linux specific -----
 if test x"$this_os" = "xlinux"; then 
        AC_MSG_RESULT([ * Linux specific configuration])
-       dnl AC_DEFINE(SENDFILE_FLAVOR_LINUX)
+
+       dnl ----- Set -shared flag
+       LDSHAREDFLAGS="-shared"
 
        dnl ----- check if we need the quotactl wrapper
        AC_CHECK_HEADER(sys/quota.h,,
@@ -437,6 +442,9 @@ if test x"$this_os" = "xmacosx"; then
        AC_DEFINE(HAVE_2ARG_DBTOB)
        AC_DEFINE(NO_DLFCN_H)
        AC_DEFINE(MACOSX_SERVER)
+
+       dnl ----- Set -shared flag
+       LDSHAREDFLAGS="-shared"
 fi
 
 dnl ----- NetBSD specific -----
@@ -447,6 +455,9 @@ if test x"$this_os" = "xnetbsd"; then
        CFLAGS="-I\$(top_srcdir)/sys/netbsd -I/usr/include/kerberosIV $CFLAGS"
        need_dash_r=yes 
 
+       dnl ----- Set -shared flag
+       LDSHAREDFLAGS="-shared"
+
        dnl ----- NetBSD does not have crypt.h, uses unistd.h -----
        AC_DEFINE(UAM_DHX, 1)
        AC_DEFINE(UAM_RNDNUM, 1)
@@ -461,6 +472,9 @@ if test x"$this_os" = "xopenbsd"; then
        AC_DEFINE(BSD4_4)
        AC_DEFINE(DLSYM_PREPEND_UNDERSCORE)
 
+       dnl ----- Set -shared flag
+       LDSHAREDFLAGS="-Bforcearchive -shared"
+
        dnl ----- OpenBSD does not have crypt.h, uses unistd.h -----
        AC_DEFINE(UAM_DHX, 1)
        AC_DEFINE(UAM_RNDNUM, 1)
@@ -478,6 +492,10 @@ if test x"$this_os" = "xsolaris"; then
        AC_DEFINE(SOLARIS)
        CFLAGS="-I\$(top_srcdir)/sys/generic $CFLAGS"
        need_dash_r=yes
+
+       dnl ----- Set -shared flag
+       LDSHAREDFLAGS="-G"
+
        AC_MSG_RESULT([enabling Solaris kernel module build])
        solaris_module=yes
 fi
@@ -492,9 +510,12 @@ if test x"$this_os" = "xtru64"; then
        AC_DEFINE(USE_UFS_QUOTA_H)
        AC_DEFINE(TRU64)
        CFLAGS="-I\$(top_srcdir)/sys/tru64 $CFLAGS"
-       LDSHAREDFLAGS="-expect_unresolved \*"
+       LDSHAREDFLAGS="-shared -expect_unresolved \*"
        need_dash_r=no
        sysv_style=tru64
+
+       dnl ----- Set -shared flag
+       LDSHAREDFLAGS="-shared"
 fi
 
 dnl -- look for openssl  
index fa73566535d30722e1544b2169798fa327ab8a2a..2d793d4ae553a4d9f63a940722cd9340242f7a7e 100644 (file)
@@ -47,7 +47,7 @@ SUFFIXES = .c .so
 .c.so:
        $(COMPILE) -DHAVE_CONFIG_H -fPIC -DPIC \
          -I$(top_srcdir) -fomit-frame-pointer -c $< ; \
-       $(LD) -shared $(LDSHAREDFLAGS) -o $@ $*.o $(LDFLAGS) $(LIBS)
+       $(LD) $(LDSHAREDFLAGS) -o $@ $*.o $(LDFLAGS) $(LIBS)
 
 #
 # create symbolic links:
index 6e503230965029c2b6c00182a8f1866e7723297f..ac980b4a5aa4f259be7211a69afa4b5caea0859a 100644 (file)
@@ -22,7 +22,7 @@ if USE_KERBEROS
          -I$(top_srcdir) -fomit-frame-pointer -c $<
 
 uams_krb4.so: kuam.o lifetime.o sent_to_kdc.o uams_krb4.o
-       $(LD) -shared $(LDSHAREDFLAGS) -o $@ *.o $(LIBS)
+       $(LD) $(LDSHAREDFLAGS) -o $@ *.o $(LIBS)
 
 #
 # install/install-strip: