e2a21ccfd6
```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 ```
15 lines
537 B
Diff
15 lines
537 B
Diff
$NetBSD: patch-makefilein,v 1.1 2007/06/06 22:05:45 rillig Exp $
|
|
|
|
When linking a program, the linking flags are needed.
|
|
|
|
--- a/src/Makefile.in 2007-01-24 21:54:12.000000000 +0100
|
|
+++ b/src/Makefile.in 2007-06-06 23:59:19.000000000 +0200
|
|
@@ -104,7 +104,7 @@ main: makefile.dep $(Z_OBJS)
|
|
rm -f version.o
|
|
|
|
$(PSR): parsegen.cpp
|
|
- @CXX@ @CXXFLAGS@ -o $@ $< -lz
|
|
+ @CXX@ @CXXFLAGS@ -o $@ $< @LDFLAGS@ @LIBS@ -lz
|
|
|
|
TOOLSEXE=$(TOOL_D)/archopt $(TOOL_D)/cutrtype $(TOOL_D)/extraext\
|
|
$(TOOL_D)/macroll $(TOOL_D)/minwhite $(TOOL_D)/nreplace\
|