View | Details | Raw Unified | Return to bug 25984
Collapse All | Expand All

(-)/usr/src/share/mk/bsd.prog.mk (-1 / +5 lines)
Lines 27-36 Link Here
27
.if defined(PROG)
27
.if defined(PROG)
28
.if defined(SRCS)
28
.if defined(SRCS)
29
29
30
# If there are Objective C sources, link with Objective C libraries.
30
# If there are Objective C or C++ sources, link with appropriate libraries.
31
.if ${SRCS:M*.m} != ""
31
.if ${SRCS:M*.m} != ""
32
OBJCLIBS?= -lobjc
32
OBJCLIBS?= -lobjc
33
LDADD+=	${OBJCLIBS}
33
LDADD+=	${OBJCLIBS}
34
.endif
35
.if ${SRCS:C/\.(cc\$|C\$|cxx\$|cpp\$)//} != ${SRCS}
36
CXXLIBS?= -lstdc++
37
LDADD+=	${CXXLIBS}
34
.endif
38
.endif
35
39
36
OBJS+=  ${SRCS:N*.h:R:S/$/.o/g}
40
OBJS+=  ${SRCS:N*.h:R:S/$/.o/g}

Return to bug 25984