From 56165c7fac75dfb63ff7f732735e4cd10f34fb59 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 27 Oct 2008 12:59:11 +0100 Subject: [PATCH] build: fix bug #5677 - fix test_{shlibs,nss_modules,pam_modules} on Solaris and other systems where sh does not support "export FOO=bar" by separating setting and exporting the variable. Thanks to Yasuma Takeda for the patch. Michael (cherry picked from commit c202b78f2f02d06f849d6d753685a3a4c141de3f) --- source/Makefile.in | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/source/Makefile.in b/source/Makefile.in index e6f99f0a635..41451275498 100644 --- a/source/Makefile.in +++ b/source/Makefile.in @@ -2719,7 +2719,8 @@ Makefile: $(srcdir)/Makefile.in config.status # Check shared libs for unresolved symbols test_shlibs: @echo "Testing $? " - @export $(LIB_PATH_VAR)=./bin && \ + @$(LIB_PATH_VAR)=./bin && \ + export $(LIB_PATH_VAR) && \ for module in $?; do \ ./script/tests/dlopen.sh $${module} \ || exit 1; \ @@ -2728,7 +2729,8 @@ test_shlibs: # Check for NSS module problems. test_nss_modules:: nss_modules @echo "Testing $(NSS_MODULES) " - @export $(LIB_PATH_VAR)=./bin && \ + @$(LIB_PATH_VAR)=./bin && \ + export $(LIB_PATH_VAR) && \ for module in $(NSS_MODULES); do \ ./script/tests/dlopen.sh $${module} \ || exit 1; \ @@ -2738,7 +2740,8 @@ test_nss_modules:: nss_modules # built can actually be loaded by a minimal PAM-aware application. test_pam_modules:: pam_modules @echo "Testing $(PAM_MODULES) " - @export $(LIB_PATH_VAR)=./bin && \ + @$(LIB_PATH_VAR)=./bin && \ + export $(LIB_PATH_VAR) && \ for module in $(PAM_MODULES); do \ ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \ || exit 1; \ -- 2.11.4.GIT