File use-rpm-opt-flags.diff of Package ibmasm

--- src/api/Makefile
+++ src/api/Makefile	2007/01/16 11:26:27
@@ -2,7 +2,7 @@
 api_object = libibmasm.o
 api_lib = libsysSp.so
 
-CFLAGS = -g -Wall -fPIC
+CFLAGS = -g -Wall -fPIC $(RPM_OPT_FLAGS)
 
 
 all: $(api_lib)
--- src/bin/halt/Makefile
+++ src/bin/halt/Makefile	2007/01/16 11:27:00
@@ -12,7 +12,7 @@
 	install -m 700 $(SPHALT) $(ROOT)/sbin
 
 $(SPHALT): $(SPHALT).c
-	$(CC) -o $@ $(IBMASM_INC) $(IBMASM_LIB) $@.c
+	$(CC) -o $@ $(IBMASM_INC) $(RPM_OPT_FLAGS) $(IBMASM_LIB) $@.c
 
 clean:
 	rm -f *.o
--- src/bin/remote/Makefile
+++ src/bin/remote/Makefile	2007/01/16 11:27:11
@@ -5,7 +5,7 @@
 	install -D evnode $(ROOT)/usr/bin/evnode
 
 evnode: evnode.c 
-	$(CC) -o evnode evnode.c
+	$(CC) $(RPM_OPT_FLAGS) -o evnode evnode.c
 
 clean:
 	rm -f *.o