summaryrefslogtreecommitdiff
path: root/sys-fs/multipath-tools/files/multipath-tools-0.8.5-respect-flags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-fs/multipath-tools/files/multipath-tools-0.8.5-respect-flags.patch')
-rw-r--r--sys-fs/multipath-tools/files/multipath-tools-0.8.5-respect-flags.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys-fs/multipath-tools/files/multipath-tools-0.8.5-respect-flags.patch b/sys-fs/multipath-tools/files/multipath-tools-0.8.5-respect-flags.patch
new file mode 100644
index 000000000000..20d9fef6f3f1
--- /dev/null
+++ b/sys-fs/multipath-tools/files/multipath-tools-0.8.5-respect-flags.patch
@@ -0,0 +1,12 @@
+--- multipath-tools-0.8.5-eecfcba/Makefile.inc
++++ multipath-tools-0.8.5-eecfcba/Makefile.inc
+@@ -98,7 +98,8 @@
+ -Werror=implicit-function-declaration -Werror=format-security \
+ $(WNOCLOBBERED) -Werror=cast-qual $(ERROR_DISCARDED_QUALIFIERS)
+ CPPFLAGS := -Wp,-D_FORTIFY_SOURCE=2
+-CFLAGS := --std=gnu99 $(CFLAGS) $(OPTFLAGS) $(WARNFLAGS) -pipe \
++CFLAGS ?= $(OPTFLAGS) $(WARNFLAGS) -pipe
++CFLAGS += --std=gnu99 \
+ -DBIN_DIR=\"$(bindir)\" -DLIB_STRING=\"${LIB}\" -DRUN_DIR=\"${RUN}\" \
+ -MMD -MP
+ BIN_CFLAGS = -fPIE -DPIE