c987560802
```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 ```
22 lines
526 B
Diff
22 lines
526 B
Diff
--- a/lisp-kernel/linuxx8664/Makefile
|
|
+++ b/lisp-kernel/linuxx8664/Makefile
|
|
@@ -69,7 +69,7 @@
|
|
all: ../../lx86cl64
|
|
|
|
|
|
-OSLIBS = -ldl -lm -lpthread -lrt
|
|
+OSLIBS = -ldl -lm -lpthread -lrt -no-pie
|
|
LINK_MAP = ./elf_x86_64.x
|
|
USE_LINK_MAP = # -T ./elf_x86_64.x
|
|
|
|
--- a/lisp-kernel/linuxx8632/Makefile
|
|
+++ b/lisp-kernel/linuxx8632/Makefile
|
|
@@ -69,7 +69,7 @@
|
|
all: ../../lx86cl
|
|
|
|
|
|
-OSLIBS = -ldl -lm -lpthread -lrt
|
|
+OSLIBS = -ldl -lm -lpthread -lrt -no-pie
|
|
LINK_SCRIPT = # ./elf_x86_32.x
|
|
USE_LINK_SCRIPT = # -T $(LINK_SCRIPT)
|
|
|