MSYS2-packages/perl/perl-cygwin-dont-add-fortify-source.patch
2020-03-22 22:59:50 +03:00

30 lines
862 B
Diff

--- perl-5.28.0/Configure.orig 2018-06-28 08:43:31.289358200 +0300
+++ perl-5.28.0/Configure 2018-06-28 09:15:58.239396500 +0300
@@ -22987,26 +22987,6 @@
fi
fi
-: add -D_FORTIFY_SOURCE if feasible and not already there
-case "$gccversion" in
-[456789].*|[1-9][0-9]*) case "$optimize$ccflags" in
- *-O*) case "$ccflags$cppsymbols" in
- *_FORTIFY_SOURCE=*) # Don't add it again.
- echo "You seem to have -D_FORTIFY_SOURCE already, not adding it." >&4
- ;;
- *) echo "Adding -D_FORTIFY_SOURCE=2 to ccflags..." >&4
- ccflags="$ccflags -D_FORTIFY_SOURCE=2"
- ;;
- esac
- ;;
- *) echo "You have gcc 4.* or later but not optimizing, not adding -D_FORTIFY_SOURCE." >&4
- ;;
- esac
- ;;
-*) echo "You seem not to have gcc 4.* or later, not adding -D_FORTIFY_SOURCE." >&4
- ;;
-esac
-
: script used to emit important warnings
cat >warn <<EOS
$startsh