7fc9190f0e
* gcc is kept at -Np0, because of void-cross ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
20 lines
709 B
Diff
20 lines
709 B
Diff
Source: Alpine Linux (adapted)
|
|
Upstream: No
|
|
Reason: Fixes compilation on i686
|
|
|
|
--- a/Make.defaults
|
|
+++ b/Make.defaults
|
|
@@ -156,11 +156,11 @@ ifneq (mingw32,$(findstring mingw32, $(GCCMACHINE)))
|
|
endif
|
|
|
|
ifeq (FreeBSD, $(findstring FreeBSD, $(OS)))
|
|
-CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Werror \
|
|
+CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra \
|
|
-fshort-wchar -fno-strict-aliasing \
|
|
-ffreestanding -fno-stack-protector
|
|
else
|
|
-CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Werror \
|
|
+CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra \
|
|
-fshort-wchar -fno-strict-aliasing \
|
|
-fno-merge-all-constants -ffreestanding -fno-stack-protector \
|
|
-fno-stack-check
|