[PATCH]Make VFS modules work under Solaris and AIX

Juergen Hasch Hasch at t-online.de
Tue May 21 13:39:01 GMT 2002


Hi Andrew,

Am Dienstag, 21. Mai 2002 12:45 schrieb Andrew Bartlett:

> Just looking at the configure.in/Makefile.in patchs (for source/), I'm
> wondering if you really meant to use the DYNEXP variable, rather than a
> new one?
>
> DYNEXP is meant to be set to the appropriate linker flags for dynamic
> function export (which is what you are trying to do, isn't it?
>
> (it is also used by pdbedit/smbpasswd for dynamic passdb modules)

I overlooked this flag, thanks for the hint. Using DYNEXP, the patch for 
configure.in gets much smaller and the Makefile.in patch isn't needed at all. 

This will apply to head and (with some fuzz) to 2_2 CVS.

...Juergen

--- configure.in.orig   Fri May 17 17:00:33 2002
+++ configure.in        Tue May 21 21:26:38 2002
@@ -884,6 +884,7 @@
                        LDSHFLAGS="-h \$@ -G"
                        if test "${GCC}" = "yes"; then
                                PICFLAG="-fPIC"
+                               DYNEXP"-Wl,-E"
                        else
                                PICFLAG="-KPIC"
                                POBAD_CC=""
@@ -921,7 +922,13 @@
                *aix*) AC_DEFINE(AIX)
                        BLDSHARED="true"
                        LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry"
-                       PICFLAG="-O2 -qmaxmem=6000"
+                       DYNEXP="-Wl,-brtl,-bexpall"
+                       if test "${GCC}" = "yes"; then
+                               PICFLAG="-O2"
+                       else
+                               PICFLAG="-O2 -qmaxmem=6000"
+                       fi
+
                        AC_DEFINE(STAT_ST_BLOCKSIZE,DEV_BSIZE)
                ;;
                *hpux*) AC_DEFINE(HPUX)
@@ -2672,6 +2679,9 @@
        *hpux11*)
                HAVE_WINBIND=yes
                WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
+               ;;
+       *aix4*)
+               HAVE_WINBIND=yes
                ;;
        *)
                HAVE_WINBIND=no





More information about the samba-technical mailing list