| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | $NetBSD: patch-Makefile,v 1.2 2018/12/16 06:47:18 schmonz Exp $ | | 1 | $NetBSD: patch-Makefile,v 1.3 2018/12/17 02:56:42 schmonz Exp $ |
2 | | | 2 | |
3 | DESTDIR support. Avoid linking duplicate symbols. | | 3 | DESTDIR support. Avoid linking duplicate symbols. |
4 | | | 4 | |
5 | --- Makefile.orig 2004-08-17 00:50:09.000000000 +0000 | | 5 | --- Makefile.orig 2004-08-17 00:50:09.000000000 +0000 |
6 | +++ Makefile | | 6 | +++ Makefile |
7 | @@ -29,6 +29,14 @@ auto-str.o: \ | | 7 | @@ -29,6 +29,14 @@ auto-str.o: \ |
8 | compile auto-str.c substdio.h readwrite.h exit.h | | 8 | compile auto-str.c substdio.h readwrite.h exit.h |
9 | ./compile auto-str.c | | 9 | ./compile auto-str.c |
10 | | | 10 | |
11 | +auto_destdir.c: \ | | 11 | +auto_destdir.c: \ |
12 | +auto-str conf-destdir | | 12 | +auto-str conf-destdir |
13 | + ./auto-str auto_home `head -1 conf-destdir` > auto_destdir.c | | 13 | + ./auto-str auto_home `head -1 conf-destdir` > auto_destdir.c |
14 | + | | 14 | + |
| @@ -41,32 +41,35 @@ DESTDIR support. Avoid linking duplicate | | | @@ -41,32 +41,35 @@ DESTDIR support. Avoid linking duplicate |
41 | + ./load instcheck hier.o auto_destdir.o strerr.a substdio.a \ | | 41 | + ./load instcheck hier.o auto_destdir.o strerr.a substdio.a \ |
42 | error.a str.a | | 42 | error.a str.a |
43 | | | 43 | |
44 | instcheck.o: \ | | 44 | instcheck.o: \ |
45 | @@ -123,7 +131,7 @@ compile instcheck.c strerr.h error_no.h | | 45 | @@ -123,7 +131,7 @@ compile instcheck.c strerr.h error_no.h |
46 | ./compile instcheck.c | | 46 | ./compile instcheck.c |
47 | | | 47 | |
48 | it: \ | | 48 | it: \ |
49 | -maildir safecat man | | 49 | -maildir safecat man |
50 | +maildir safecat | | 50 | +maildir safecat |
51 | | | 51 | |
52 | find-systype: \ | | 52 | find-systype: \ |
53 | find-systype.sh auto-ccld.sh | | 53 | find-systype.sh auto-ccld.sh |
54 | @@ -219,14 +227,14 @@ compile open_trunc.c open.h | | 54 | @@ -218,15 +226,15 @@ compile open_trunc.c open.h |
| | | 55 | ./compile open_trunc.c |
55 | | | 56 | |
56 | safecat: \ | | 57 | safecat: \ |
57 | load safecat.o getln.a str.a stralloc.a strerr.a substdio.a alloc.o \ | | 58 | -load safecat.o getln.a str.a stralloc.a strerr.a substdio.a alloc.o \ |
58 | -alloc_re.o byte_copy.o byte_cr.o envread.o error.o error_str.o fmt_uint64.o \ | | 59 | -alloc_re.o byte_copy.o byte_cr.o envread.o error.o error_str.o fmt_uint64.o \ |
59 | -hostname.o sig.o stat_dir.o str_diffn.o str_len.o substdio_copy.o \ | | 60 | -hostname.o sig.o stat_dir.o str_diffn.o str_len.o substdio_copy.o \ |
| | | 61 | +load safecat.o getln.a stralloc.a str.a strerr.a substdio.a alloc.o \ |
60 | +alloc_re.o byte_cr.o envread.o error.o error_str.o fmt_uint64.o \ | | 62 | +alloc_re.o byte_cr.o envread.o error.o error_str.o fmt_uint64.o \ |
61 | +hostname.o sig.o stat_dir.o str_diffn.o substdio_copy.o \ | | 63 | +hostname.o sig.o stat_dir.o str_diffn.o substdio_copy.o \ |
62 | substdi.o substdio.o taia_fmtfrac.o taia_now.o taia_tai.o tempfile.o \ | | 64 | substdi.o substdio.o taia_fmtfrac.o taia_now.o taia_tai.o tempfile.o \ |
63 | writefile.o | | 65 | writefile.o |
64 | ./load safecat getln.a str.a stralloc.a strerr.a substdio.a \ | | 66 | - ./load safecat getln.a str.a stralloc.a strerr.a substdio.a \ |
65 | - alloc.o alloc_re.o byte_copy.o byte_cr.o envread.o error.o \ | | 67 | - alloc.o alloc_re.o byte_copy.o byte_cr.o envread.o error.o \ |
| | | 68 | + ./load safecat getln.a stralloc.a str.a strerr.a substdio.a \ |
66 | + alloc.o alloc_re.o byte_cr.o envread.o error.o \ | | 69 | + alloc.o alloc_re.o byte_cr.o envread.o error.o \ |
67 | error_str.o fmt_uint64.o hostname.o sig.o stat_dir.o str_diffn.o \ | | 70 | error_str.o fmt_uint64.o hostname.o sig.o stat_dir.o str_diffn.o \ |
68 | - str_len.o substdi.o substdio.o substdio_copy.o taia_fmtfrac.o \ | | 71 | - str_len.o substdi.o substdio.o substdio_copy.o taia_fmtfrac.o \ |
69 | + substdi.o substdio.o substdio_copy.o taia_fmtfrac.o \ | | 72 | + substdi.o substdio.o substdio_copy.o taia_fmtfrac.o \ |
70 | taia_now.o taia_tai.o tempfile.o writefile.o | | 73 | taia_now.o taia_tai.o tempfile.o writefile.o |
71 | | | 74 | |
72 | safecat.0: \ | | 75 | safecat.0: \ |