Blame SOURCES/libcap-2.22-buildflags.patch

340b7f
diff -up libcap-2.22/Make.Rules~ libcap-2.22/Make.Rules
340b7f
--- libcap-2.22/Make.Rules~	2011-07-25 05:18:23.000000000 +0300
340b7f
+++ libcap-2.22/Make.Rules	2013-02-24 20:58:45.681474100 +0200
340b7f
@@ -48,7 +48,7 @@ KERNEL_HEADERS := $(topdir)/libcap/inclu
340b7f
 IPATH += -fPIC -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)
340b7f
 
340b7f
 CC := gcc
340b7f
-CFLAGS := -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
340b7f
+CFLAGS := $(RPM_OPT_FLAGS) -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
340b7f
 BUILD_CC := $(CC)
340b7f
 BUILD_CFLAGS := $(CFLAGS) $(IPATH)
340b7f
 AR := ar
340b7f
@@ -59,7 +59,7 @@ WARNINGS=-Wall -Wwrite-strings \
340b7f
         -Wstrict-prototypes -Wmissing-prototypes \
340b7f
         -Wnested-externs -Winline -Wshadow
340b7f
 LD=$(CC) -Wl,-x -shared
340b7f
-LDFLAGS := #-g
340b7f
+LDFLAGS := $(RPM_LD_FLAGS) #-g
340b7f
 
340b7f
 SYSTEM_HEADERS = /usr/include
340b7f
 INCS=$(topdir)/libcap/include/sys/capability.h