r1073: import DYNEXP flags to smb_build
authorStefan Metzmacher <metze@samba.org>
Mon, 7 Jun 2004 18:31:38 +0000 (18:31 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:56:36 +0000 (12:56 -0500)
and use @{$SMB_BUILD_CTX->{BUILD_ENV}{LD}{DYNEXP}} for the flags

I'll use this for all vars which are currently using AC_SUBST(),
so we can skip Makefile.in...

(this should fix the build on us4...)

metze
(This used to be commit 798cbed5a328bd773447f1ee0b4f6ea751062e7e)

source4/build/m4/rewrite.m4
source4/build/smb_build/core.m4
source4/build/smb_build/env.m4
source4/build/smb_build/output.pl

index 465a3354fa18516b5595018dd34e92c428d31b12..bd29d03c1f9ccad4291393c73824d89eb880ccc0 100644 (file)
@@ -670,7 +670,6 @@ case "$host_os" in
                AC_DEFINE(STAT_ST_BLOCKSIZE,512)
                ;;
 esac
-AC_SUBST(DYNEXP)
 AC_MSG_RESULT($BLDSHARED)
 AC_MSG_CHECKING([linker flags for shared libraries])
 AC_MSG_RESULT([$LDSHFLAGS])
@@ -701,6 +700,14 @@ if test $ac_cv_shlib_works = no; then
 fi
 fi
 
+SMB_INFO_BUILD_ENV="$SMB_INFO_BUILD_ENV
+#############################################
+# Start Tell the Linker to export all symbols
+@{\$SMB_BUILD_CTX->{BUILD_ENV}{LD}{DYNEXP}} = str2array(\"$DYNEXP\");
+# End Tell the Linker to export all symbols
+#############################################
+"
+
 #
 # Check if the compiler supports the LL prefix on long long integers.
 # AIX needs this.
index df95610c989cc283029a4ff1bdef49e9a4a65cf8..366b0a364d26afe073e72c7a2ab2afc56c23e0a2 100644 (file)
@@ -44,6 +44,11 @@ cat >> config.smb_build.pl <<\_SMB_ACEOF
 ###########################################################
 #
 #########################################
+## Start Build Env
+$SMB_INFO_BUILD_ENV
+## End Build Env
+#########################################
+#########################################
 ## Start Ext Libs
 $SMB_INFO_EXT_LIBS
 ## End Ext Libs
index 896e128bd3e3087de63f2e1ab986fe6d1566f917..601eba2e15e051bc28288619b1d6e2fab055f236 100644 (file)
@@ -15,6 +15,8 @@ fi
 
 AC_VALIDATE_CACHE_SYSTEM_TYPE
 
+SMB_INFO_BUILD_ENV=""
+
 sinclude(build/smb_build/check_path.m4)
 sinclude(build/smb_build/check_perl.m4)
 sinclude(build/smb_build/check_cc.m4)
index 99a0eddb435cffe50fa4e60d8695e168b54cbde7..0ee456bff6e41d131ca01d10656b41a4bc621f1a 100644 (file)
@@ -212,7 +212,7 @@ sub _generate_binaries($)
                }
 
                # Export all symbols...
-               push(@LINK_FLAGS,"\@DYNEXP\@");
+               push(@LINK_FLAGS,@{$CTX->{BUILD_ENV}{LD}{DYNEXP}});
 
                #
                # set the lists