2020-07-28 13:50:05 +02:00
|
|
|
commit ca7a8ea03eb00c9c5c7e4fcaf9603c4d0760177a
|
2017-11-21 10:16:22 +01:00
|
|
|
Author: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
|
|
|
|
Date: Mon Nov 20 17:59:37 2017 +0100
|
2016-10-31 14:47:12 +01:00
|
|
|
|
2017-11-21 10:16:22 +01:00
|
|
|
libpsm2: use_RPM_OPT_FLAGS
|
|
|
|
|
|
|
|
Add RPM_OPT_FLAGS to CFLAGS
|
|
|
|
|
|
|
|
Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com>
|
|
|
|
|
|
|
|
diff --git buildflags.mak buildflags.mak
|
2020-07-28 13:50:05 +02:00
|
|
|
index 7c3cda099871..baf7e5bb5a2f 100644
|
2017-11-21 10:16:22 +01:00
|
|
|
--- buildflags.mak
|
|
|
|
+++ buildflags.mak
|
2020-07-28 13:50:05 +02:00
|
|
|
@@ -72,7 +72,7 @@ else
|
2016-12-06 17:38:19 +01:00
|
|
|
anerr := $(error Unknown Fortran compiler arch: ${FCARCH})
|
|
|
|
endif # gfortran
|
2016-10-31 14:47:12 +01:00
|
|
|
|
2019-10-04 09:18:21 +02:00
|
|
|
-BASECFLAGS := $(BASE_FLAGS) -pthread
|
|
|
|
+BASECFLAGS := $(BASE_FLAGS) -pthread $(RPM_OPT_FLAGS)
|
2016-10-31 14:47:12 +01:00
|
|
|
LDFLAGS += $(BASE_FLAGS)
|
|
|
|
ASFLAGS += $(BASE_FLAGS)
|
|
|
|
|
2017-11-21 10:16:22 +01:00
|
|
|
diff --git compat/buildflags.mak compat/buildflags.mak
|
2020-07-28 13:50:05 +02:00
|
|
|
index db348481b169..f7334e3936a7 100644
|
2017-11-21 10:16:22 +01:00
|
|
|
--- compat/buildflags.mak
|
|
|
|
+++ compat/buildflags.mak
|
2020-07-28 13:50:05 +02:00
|
|
|
@@ -63,7 +63,7 @@ else
|
|
|
|
anerr := $(error Unknown C compiler arch: ${CCARCH})
|
|
|
|
endif
|
2016-10-31 14:47:12 +01:00
|
|
|
|
|
|
|
-BASECFLAGS += $(BASE_FLAGS)
|
|
|
|
+BASECFLAGS += $(BASE_FLAGS) $(RPM_OPT_FLAGS)
|
|
|
|
LDFLAGS += $(BASE_FLAGS)
|
|
|
|
ASFLAGS += $(BASE_FLAGS)
|
|
|
|
|