diff options
author | ru <ru@FreeBSD.org> | 2007-10-01 18:15:11 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2007-10-01 18:15:11 +0000 |
commit | 0de18b1b0a14db0095b700d2d40a742b327ea811 (patch) | |
tree | 3304513635084cc8218bccdfe0c0000f04f281f9 /share/mk/bsd.prog.mk | |
parent | 9439813d075fa749d870705314851a423813bbdc (diff) | |
download | FreeBSD-src-0de18b1b0a14db0095b700d2d40a742b327ea811.zip FreeBSD-src-0de18b1b0a14db0095b700d2d40a742b327ea811.tar.gz |
Fixed "make checkdpadd" (missing library dependencies).
Approved by: re (kensmith)
Diffstat (limited to 'share/mk/bsd.prog.mk')
-rw-r--r-- | share/mk/bsd.prog.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index 9601c71..b9fee32 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -40,8 +40,12 @@ PROG= ${PROG_CXX} # If there are Objective C sources, link with Objective C libraries. .if !empty(SRCS:M*.m) -OBJCLIBS?= -lobjc -lpthread +.if defined(OBJCLIBS) LDADD+= ${OBJCLIBS} +.else +DPADD+= ${LIBOBJC} ${LIBPTHREAD} +LDADD+= -lobjc -lpthread +.endif .endif OBJS+= ${SRCS:N*.h:R:S/$/.o/g} |