File fscaps-1.0_rpmoptflags.patch of Package fscaps
Index: Makefile
===================================================================
--- Makefile.orig
+++ Makefile
@@ -3,10 +3,10 @@ RPMSRC = $(shell rpm -E %{_sourcedir})
all: getfcaps setfcaps
getfcaps: getfcaps.c cap_file.c
- gcc -O2 -Wall -o getfcaps getfcaps.c cap_file.c -lcap
+ gcc $(OPTFLAGS) -Wall -o getfcaps getfcaps.c cap_file.c -lcap
setfcaps: setfcaps.c cap_file.c
- gcc -O2 -Wall -o setfcaps setfcaps.c cap_file.c -lcap
+ gcc $(OPTFLAGS) -Wall -o setfcaps setfcaps.c cap_file.c -lcap
clean:
rm -f getfcaps setfcaps