components/zlib/patches/system-test.patch
author Petr Sumbera <petr.sumbera@oracle.com>
Wed, 04 Nov 2015 02:38:31 -0800
changeset 5060 cd8d20971627
permissions -rw-r--r--
22149578 zlib should have master test results and support system-test

Patch origin: in-house
Patch status: Solaris-specific; not suitable for upstream

Allows to test minigzip with installed version of zlib.

--- zlib-1.2.8/Makefile.in
+++ zlib-1.2.8/Makefile.in
@@ -92,9 +92,11 @@
 	rm -f $$TMPST
 
 testshared: shared
-	@LD_LIBRARY_PATH=`pwd`:$(LD_LIBRARY_PATH) ; export LD_LIBRARY_PATH; \
+	@if test -z $(SYSTEM_TEST); then \
+	LD_LIBRARY_PATH=`pwd`:$(LD_LIBRARY_PATH) ; export LD_LIBRARY_PATH; \
 	LD_LIBRARYN32_PATH=`pwd`:$(LD_LIBRARYN32_PATH) ; export LD_LIBRARYN32_PATH; \
 	DYLD_LIBRARY_PATH=`pwd`:$(DYLD_LIBRARY_PATH) ; export DYLD_LIBRARY_PATH; \
+	fi; \
 	SHLIB_PATH=`pwd`:$(SHLIB_PATH) ; export SHLIB_PATH; \
 	TMPSH=tmpsh_$$; \
 	if echo hello world | ./minigzipsh | ./minigzipsh -d && ./examplesh $$TMPSH; then \