```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 ```
30 lines
589 B
Diff
30 lines
589 B
Diff
--- a/src/Makefile 2020-09-02 21:19:30.000000000 +0700
|
|
+++ b/src/Makefile 2021-01-14 18:51:25.852600109 +0700
|
|
@@ -306,26 +306,7 @@
|
|
|
|
ifeq ($(COMP),gcc)
|
|
comp=gcc
|
|
- CXX=g++
|
|
CXXFLAGS += -pedantic -Wextra -Wshadow
|
|
-
|
|
- ifeq ($(arch),$(filter $(arch),armv7 armv8))
|
|
- ifeq ($(OS),Android)
|
|
- CXXFLAGS += -m$(bits)
|
|
- LDFLAGS += -m$(bits)
|
|
- endif
|
|
- else
|
|
- CXXFLAGS += -m$(bits)
|
|
- LDFLAGS += -m$(bits)
|
|
- endif
|
|
-
|
|
- ifeq ($(arch),$(filter $(arch),armv7))
|
|
- LDFLAGS += -latomic
|
|
- endif
|
|
-
|
|
- ifneq ($(KERNEL),Darwin)
|
|
- LDFLAGS += -Wl,--no-as-needed
|
|
- endif
|
|
endif
|
|
|
|
ifeq ($(COMP),mingw)
|