pbzip2/pbzip2-1.1.6-buildflags.patch
Ville Skyttä 9a07281412 Update to 1.1.6.
- Build with %{?__global_ldflags} and %{?_smp_mflags}.
- Fix some rpmlint warnings.
2012-06-02 11:32:11 +03:00

22 lines
555 B
Diff

diff -up pbzip2-1.1.6/Makefile~ pbzip2-1.1.6/Makefile
--- pbzip2-1.1.6/Makefile~ 2011-10-30 21:22:47.000000000 +0200
+++ pbzip2-1.1.6/Makefile 2012-06-01 23:42:11.653480198 +0300
@@ -3,7 +3,7 @@ SHELL = /bin/sh
# Compiler to use
CC = g++
-CFLAGS = -O2
+CFLAGS ?= -O2
#CFLAGS += -g -Wall
#CFLAGS += -ansi
#CFLAGS += -pedantic
@@ -37,7 +37,7 @@ CFLAGS += -DUSE_STACKSIZE_CUSTOMIZATION
CFLAGS += -pthread
# External libraries
-LDFLAGS = -lbz2
+LDFLAGS += -lbz2
LDFLAGS += -lpthread
# Where you want pbzip2 installed when you do 'make install'