components/pbzip2/patches/Makefile.patch
author Rich Burridge <rich.burridge@oracle.com>
Tue, 09 Sep 2014 15:00:31 -0700
branchs11u2-sru
changeset 3303 353b45759c7e
parent 2557 b52f689e05e2
permissions -rw-r--r--
19535331 problem in UTILITY/LUA

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