components/pbzip2/patches/Makefile.patch
branchs11-update
changeset 2557 b52f689e05e2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/pbzip2/patches/Makefile.patch	Tue Apr 09 10:33:04 2013 -0700
@@ -0,0 +1,29 @@
+Adjust the CFLAGS in the Solaris Studio Makefile to not include build
+options like '-fast' and '-lpthread', use -D_REENTRANT instead of -mt
+and to not set a run path.
+
+--- pbzip2-1.1.6/Makefile.solaris.sunstudio.orig	2013-03-18 08:53:39.894869460 -0700
++++ pbzip2-1.1.6/Makefile.solaris.sunstudio	2013-03-18 10:37:02.531235184 -0700
+@@ -4,11 +4,12 @@
+ # Compiler to use
+ CC=CC
+ CFLAGS = -m64
+-CFLAGS += -fast -xO5
++CFLAGS += -xO5
+ 
+ #CFLAGS += -Wall
+ #CFLAGS += -g
+-CFLAGS += -mt -lpthread
++CFLAGS += -D_REENTRANT
++CFLAGS += -norunpath
+ 
+ # Comment out CFLAGS line below for compatability mode for 32bit file sizes
+ # (less than 2GB) and systems that have compilers that treat int as 64bit
+@@ -30,7 +31,6 @@
+ 
+ # Libraries
+ LDFLAGS = -lbz2
+-LDFLAGS += -lpthread
+ 
+ # Where you want pbzip2 installed when you do 'make install'
+ PREFIX = /usr