File sbcl-1.1.17-optflags.patch of Package sbcl

---
 contrib/asdf-module.mk          |    2 +-
 src/runtime/Config.ppc-linux    |    2 +-
 src/runtime/Config.sparc-linux  |    2 ++
 src/runtime/Config.x86-64-linux |    2 +-
 src/runtime/Config.x86-linux    |    2 ++
 5 files changed, 7 insertions(+), 3 deletions(-)

--- a/contrib/asdf-module.mk
+++ b/contrib/asdf-module.mk
@@ -24,7 +24,7 @@ ifeq (CYGWIN,$(findstring CYGWIN,$(UNAME
   CC:=$(shell cygpath -m $(shell readlink -fn $(shell which $(CC))))
 endif
 ifeq (Linux,$(UNAME))
-  EXTRA_CFLAGS=-D_GNU_SOURCE
+  EXTRA_CFLAGS=-D_GNU_SOURCE $(RPM_OPT_FLAGS)
 endif
 
 export CC SBCL EXTRA_CFLAGS EXTRA_LDFLAGS
--- a/src/runtime/Config.ppc-linux
+++ b/src/runtime/Config.ppc-linux
@@ -9,7 +9,7 @@
 # provided with absolutely no warranty. See the COPYING and CREDITS
 # files for more information.
 
-CFLAGS = -g -m32
+CFLAGS += -g -m32 $(RPM_OPT_FLAGS)
 LINKFLAGS += -v -rdynamic -m32
 NM = ./linux-nm
 
--- a/src/runtime/Config.sparc-linux
+++ b/src/runtime/Config.sparc-linux
@@ -22,6 +22,8 @@ ifdef LISP_FEATURE_SB_CORE_COMPRESSION
   OS_LIBS += -lz
 endif
 
+CFLAGS += $(RPM_OPT_FLAGS)
+
 ifdef LISP_FEATURE_GENCGC
   GC_SRC = gencgc.c
 else
--- a/src/runtime/Config.x86-64-linux
+++ b/src/runtime/Config.x86-64-linux
@@ -42,7 +42,7 @@ ifdef LISP_FEATURE_SB_CORE_COMPRESSION
   OS_LIBS += -lz
 endif
 
-CFLAGS += -fno-omit-frame-pointer
+CFLAGS += -fno-omit-frame-pointer $(RPM_OPT_FLAGS)
 
 GC_SRC = gencgc.c
 
--- a/src/runtime/Config.x86-linux
+++ b/src/runtime/Config.x86-linux
@@ -42,6 +42,8 @@ ifdef LISP_FEATURE_SB_CORE_COMPRESSION
   OS_LIBS += -lz
 endif
 
+CFLAGS += $(RPM_OPT_FLAGS)
+
 GC_SRC = gencgc.c
 
 # Nothing to do for after-grovel-headers.
openSUSE Build Service is sponsored by