summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/multipath-tools/files/0004-RH-use-rpm-optflags-if-present.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/multipath-tools/files/0004-RH-use-rpm-optflags-if-present.patch')
-rw-r--r--meta-oe/recipes-support/multipath-tools/files/0004-RH-use-rpm-optflags-if-present.patch24
1 files changed, 15 insertions, 9 deletions
diff --git a/meta-oe/recipes-support/multipath-tools/files/0004-RH-use-rpm-optflags-if-present.patch b/meta-oe/recipes-support/multipath-tools/files/0004-RH-use-rpm-optflags-if-present.patch
index 5f65ceaa29..8fad8d5645 100644
--- a/meta-oe/recipes-support/multipath-tools/files/0004-RH-use-rpm-optflags-if-present.patch
+++ b/meta-oe/recipes-support/multipath-tools/files/0004-RH-use-rpm-optflags-if-present.patch
@@ -19,23 +19,26 @@ Signed-off-by: Changqing Li <changqing.li@windriver.com>
19 19
20Rebase to 0.10.0 20Rebase to 0.10.0
21Signed-off-by: Yi Zhao <yi.zhao@windriver.com> 21Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
22
23Rebase to 0.12.1
24Signed-off-by: Liu Yiding <liuyd.fnst@fujitsu.com>
22--- 25---
23 Makefile.inc | 12 ++++++++++-- 26 Makefile.inc | 12 ++++++++++--
24 1 file changed, 10 insertions(+), 2 deletions(-) 27 1 file changed, 10 insertions(+), 2 deletions(-)
25 28
26diff --git a/Makefile.inc b/Makefile.inc 29diff --git a/Makefile.inc b/Makefile.inc
27index 596e68c0..42766867 100644 30index d04a3175..eb339251 100644
28--- a/Makefile.inc 31--- a/Makefile.inc
29+++ b/Makefile.inc 32+++ b/Makefile.inc
30@@ -99,7 +99,15 @@ SYSTEMD_LIBDEPS := $(if $(SYSTEMD),$(if $(shell test $(SYSTEMD) -gt 209 && echo 33@@ -102,7 +102,15 @@ SYSTEMD_LIBDEPS := $(if $(SYSTEMD),$(if $(shell test $(SYSTEMD) -gt 209 && echo
31 MODPROBE_UNIT := $(shell test "0$(SYSTEMD)" -lt 245 2>/dev/null || \ 34 MODPROBE_UNIT := $(shell test "0$(SYSTEMD)" -lt 245 2>/dev/null || \
32 echo "modprobe@dm_multipath.service") 35 echo "modprobe@dm_multipath.service")
33 36
34-OPTFLAGS := -O2 -g $(STACKPROT) --param=ssp-buffer-size=4 37-OPTFLAGS := -O2 -g $(STACKPROT) --param=ssp-buffer-size=4
35+ifndef RPM_OPT_FLAGS 38+ifndef RPM_OPT_FLAGS
36+ OPTFLAGS := -O2 -g $(STACKPROT) --param=ssp-buffer-size=4 39+ OPTFLAGS := -O2 -g $(STACKPROT) --param=ssp-buffer-size=4
37+else 40+else
38+ OPTFLAGS = $(RPM_OPT_FLAGS) 41+ OPTFLAGS = $(RPM_OPT_FLAGS)
39+endif 42+endif
40+OPTFLAGS += -Wextra -Wstrict-prototypes -Wformat=0 -Werror=implicit-int \ 43+OPTFLAGS += -Wextra -Wstrict-prototypes -Wformat=0 -Werror=implicit-int \
41+ -Werror=implicit-function-declaration -Wno-sign-compare \ 44+ -Werror=implicit-function-declaration -Wno-sign-compare \
@@ -44,12 +47,15 @@ index 596e68c0..42766867 100644
44 47
45 # Set WARN_ONLY=1 to avoid compilation erroring out due to warnings. Useful during development. 48 # Set WARN_ONLY=1 to avoid compilation erroring out due to warnings. Useful during development.
46 WARN_ONLY := 49 WARN_ONLY :=
47@@ -115,7 +123,7 @@ CPPFLAGS := $(FORTIFY_OPT) $(CPPFLAGS) $(D_URCU_VERSION) \ 50@@ -121,7 +129,7 @@ CPPFLAGS := $(FORTIFY_OPT) $(CPPFLAGS) $(D_URCU_VERSION) \
48 -DRUNTIME_DIR=\"$(runtimedir)\" -DCONFIG_DIR=\"$(TGTDIR)$(configdir)\" \ 51 -DABSTRACT_SOCKET=\"$(abstract_socket)\" -DPATHNAME_SOCKET=\"$(pathname_socket)\" \
49 -DDEFAULT_CONFIGFILE=\"$(TGTDIR)$(configfile)\" -DSTATE_DIR=\"$(TGTDIR)$(statedir)\" \ 52 -DWSTRINGOP_TRUNCATION=$(if $(WSTRINGOP_TRUNCATION),1,0) \
50 -DEXTRAVERSION=\"$(EXTRAVERSION)\" -MMD -MP 53 -MMD -MP
51-CFLAGS := -std=$(C_STD) $(CFLAGS) $(OPTFLAGS) $(WARNFLAGS) -pipe \ 54-CFLAGS := -std=$(C_STD) $(CFLAGS) $(OPTFLAGS) $(WARNFLAGS) -pipe \
52+CFLAGS := -std=$(C_STD) $(CFLAGS) $(OPTFLAGS) -pipe \ 55+CFLAGS := -std=$(C_STD) $(CFLAGS) $(OPTFLAGS) -pipe \
53 -fexceptions 56 -fexceptions
54 BIN_CFLAGS := -fPIE -DPIE 57 BIN_CFLAGS := -fPIE -DPIE
55 LIB_CFLAGS := -fPIC 58 LIB_CFLAGS := -fPIC
59--
602.43.0
61