components/pbzip2/patches/Makefile.patch
author John Beck <John.Beck@Oracle.COM>
Tue, 02 Apr 2013 08:43:27 -0700
changeset 1245 b95e96615c0c
parent 1219 cdd8157bab31
permissions -rw-r--r--
16577372 Userland Makefile variables should be less magical

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