components/zlib/patches/parfait.patch
author Petr Sumbera <petr.sumbera@oracle.com>
Wed, 11 Jun 2014 23:33:02 -0700
changeset 1945 3dc1935a2189
child 7718 9960a50bc6cf
permissions -rw-r--r--
PSARC/2014/167 zlib 1.2.8 16808660 Upgrade zlib to 1.2.8 for decompression bug fix 15596370 SUNBT6891268 zlib should provide large file support

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

ZLIB renames *.o file into *.lo before it links them info shared
library. We need to do same to *.o.bc files so they are recognized by
Parfait during linking.

Downside of it is that Parfait will analyze also these separate object
files.

--- zlib-1.2.8/Makefile.in	2013-04-28 15:57:11.000000000 -0700
+++ zlib-1.2.8/Makefile.in	2014-05-07 07:30:58.047571894 -0700
@@ -158,6 +158,7 @@
 	-@mkdir objs 2>/dev/null || test -d objs
 	$(CC) $(SFLAGS) -DPIC -c -o objs/$*.o $<
 	-@mv objs/$*.o $@
+	-@if [ -f objs/$*.o.bc ]; then mv objs/$*.o.bc [email protected]; fi
 
 placebo $(SHAREDLIBV): $(PIC_OBJS) libz.a
 	$(LDSHARED) $(SFLAGS) -o $@ $(PIC_OBJS) $(LDSHAREDLIBC) $(LDFLAGS)