Package: freebsd-buildutils / 10.0-5

22_ld_as_needed.diff Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- a/src/usr.bin/make/Makefile
+++ b/src/usr.bin/make/Makefile
@@ -6,6 +6,7 @@
 
 PROG=	make
 CFLAGS+=-I${.CURDIR}
+LDADD+=-lbsd
 SRCS=	arch.c buf.c cond.c dir.c for.c hash.c hash_tables.c job.c	\
 	lst.c main.c make.c parse.c proc.c shell.c str.c suff.c targ.c	\
 	util.c var.c
--- a/src/usr.sbin/mtree/Makefile
+++ b/src/usr.sbin/mtree/Makefile
@@ -9,6 +9,7 @@
 MAN=	fmtree.8 mtree.5
 SRCS=	compare.c crc.c create.c excludes.c misc.c mtree.c spec.c verify.c
 SRCS+=	specspec.c
+LDADD+=	-lbsd
 
 
 .if ${MK_NMTREE} == "no"
--- a/src/usr.bin/brandelf/Makefile
+++ b/src/usr.bin/brandelf/Makefile
@@ -1,5 +1,6 @@
 # $FreeBSD$
 
 PROG=	brandelf
+LDADD=	-lbsd
 
 .include <bsd.prog.mk>
--- a/src/usr.bin/cksum/Makefile
+++ b/src/usr.bin/cksum/Makefile
@@ -3,6 +3,7 @@
 
 PROG=	cksum
 SRCS=	cksum.c crc.c print.c sum1.c sum2.c crc32.c
+LDADD+=	-lbsd
 SIMLINKS=	${BINDIR}/cksum ${BINDIR}/sum
 MLINKS=	cksum.1 sum.1
 
--- a/src/usr.bin/file2c/Makefile
+++ b/src/usr.bin/file2c/Makefile
@@ -1,4 +1,5 @@
 # $FreeBSD$
 
 PROG=	file2c
+LDADD+=	-lbsd
 .include <bsd.prog.mk>