Blame SOURCES/RPM_OPT_FLAGS.patch

50ea05
--- ptdump-1.0.3/ptdump.mk.orig
50ea05
+++ ptdump-1.0.3/ptdump.mk
50ea05
@@ -43,7 +43,7 @@ ptdump.so: $(TARGET_CFILES) $(INCDIR)/de
50ea05
 ifeq ($(ARCH),UNSUPPORTED)
50ea05
 	@echo "ptdump: architecture not supported"
50ea05
 else
50ea05
-	gcc $(CFLAGS) $(TARGET_CFLAGS) $(COMMON_CFLAGS) -nostartfiles -shared -rdynamic -o $@ $(TARGET_CFILES)
50ea05
+	gcc $(RPM_OPT_FLAGS) $(CFLAGS) $(TARGET_CFLAGS) $(COMMON_CFLAGS) -nostartfiles -shared -rdynamic -o $@ $(TARGET_CFILES)
50ea05
 endif
50ea05
 
50ea05
 debug: COMMON_CFLAGS+=-DDEBUG