diff options
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} |