Fix possibility to redefine -D_FORTIFY_SOURCE macro.
Subsystems (2)
PATCH 1/1 Fix possibility to redefine -D_FORTIFY_SOURCE macro.
As explained here:
https://github.com/opensvc/multipath-tools/issues/29
using -Wp,-D_FORTIFY_SOURCE cannot be redefined with -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3.
--- Makefile.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile.inc +1 -1
@@ -123,7 +123,7 @@ OPTFLAGS := -O2 -g $(STACKPROT) --param=ssp-buffer-size=4 WARNFLAGS := -Werror -Wall -Wextra -Wformat=2 $(WFORMATOVERFLOW) -Werror=implicit-int \ -Werror=implicit-function-declaration -Werror=format-security \ $(WNOCLOBBERED) -Werror=cast-qual $(ERROR_DISCARDED_QUALIFIERS) -CPPFLAGS := -Wp,-D_FORTIFY_SOURCE=2 +CPPFLAGS := -D_FORTIFY_SOURCE=2 CFLAGS := --std=gnu99 $(CFLAGS) $(OPTFLAGS) $(WARNFLAGS) -pipe \ -DBIN_DIR=\"$(bindir)\" -DLIB_STRING=\"${LIB}\" -DRUN_DIR=\"${RUN}\" \ -MMD -MP
Signature · 6 lines
2.35.1 -- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
Quoted 5 lines · Martin Liška
As explained here:
https://github.com/opensvc/multipath-tools/issues/29using -Wp,-D_FORTIFY_SOURCE cannot be redefined with -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3.
Looks good, please resend with Signed-off-by.
Thanks,
Martin
--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel