From fcb044441b4501f40970d7e91f1d09930d2ede8a Mon Sep 17 00:00:00 2001 From: rufustfirefly Date: Mon, 26 Mar 2001 20:11:53 +0000 Subject: [PATCH] un-hardcoded -shared, moved into LDSHAREDFLAGS --- configure.in | 25 +++++++++++++++++++++++-- etc/uams/Makefile.am | 2 +- etc/uams/uams_krb4/Makefile.am | 2 +- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 3cc23554..41621577 100644 --- a/configure.in +++ b/configure.in @@ -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 diff --git a/etc/uams/Makefile.am b/etc/uams/Makefile.am index fa735665..2d793d4a 100644 --- a/etc/uams/Makefile.am +++ b/etc/uams/Makefile.am @@ -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: diff --git a/etc/uams/uams_krb4/Makefile.am b/etc/uams/uams_krb4/Makefile.am index 6e503230..ac980b4a 100644 --- a/etc/uams/uams_krb4/Makefile.am +++ b/etc/uams/uams_krb4/Makefile.am @@ -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: -- 2.39.2