File irda-optflags.diff of Package irda
--- irattach/Makefile
+++ irattach/Makefile
@@ -28,7 +28,7 @@
CC = gcc
LD = ld
RM = rm -f
-CFLAGS = -O2 -W -Wall -Wstrict-prototypes -Wshadow $(SYS_INCLUDES)
+CFLAGS = $(RPM_OPT_FLAGS) -O2 -W -Wall -Wstrict-prototypes -Wshadow $(SYS_INCLUDES)
SYS_INCLUDES = -I/usr/include
SYS_LIBPATH = -L/usr/lib -L/usr/local/lib
--- irdadump/Makefile
+++ irdadump/Makefile
@@ -19,7 +19,7 @@
SYS_LIBRARIES =
SYS_LIBPATH = -L/usr/lib -L/usr/local/lib
-CFLAGS= -O2 -W -Wall -I. `pkg-config --cflags glib-2.0`
+CFLAGS= $(RPM_OPT_FLAGS) -O2 -W -Wall -I. `pkg-config --cflags glib-2.0`
LIBIRDADUMP_OBJS = irdadump.o irlap.o irlmp.o obex.o ircomm.o netbuf.o capture.o
IRDADUMP_OBJS = main.o
--- smcinit/Makefile
+++ smcinit/Makefile
@@ -16,7 +16,7 @@
SYS_LIBRARIES =
SYS_LIBPATH = -L/usr/lib -L/usr/local/lib
-CFLAGS= -O2 -W -Wall -I.
+CFLAGS= $(RPM_OPT_FLAGS) -O2 -W -Wall -I.
SMCINIT_OBJS = smcinit.o tosh1800-smcinit.o tosh2450-smcinit.o