FreeBSD Bugzilla – Attachment 13723 Details for
Bug 25984
bsd.prog.mk doesn't link C++ programs properly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 537 bytes, created by
cbond
on 2001-03-22 07:30:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
cbond
Created:
2001-03-22 07:30:02 UTC
Size:
537 bytes
patch
obsolete
>--- /usr/src/share/mk/bsd.prog.mk.orig Wed Mar 21 22:30:10 2001 >+++ /usr/src/share/mk/bsd.prog.mk Wed Mar 21 23:18:52 2001 >@@ -27,10 +27,14 @@ > .if defined(PROG) > .if defined(SRCS) > >-# If there are Objective C sources, link with Objective C libraries. >+# If there are Objective C or C++ sources, link with appropriate libraries. > .if ${SRCS:M*.m} != "" > OBJCLIBS?= -lobjc > LDADD+= ${OBJCLIBS} >+.endif >+.if ${SRCS:C/\.(cc\$|C\$|cxx\$|cpp\$)//} != ${SRCS} >+CXXLIBS?= -lstdc++ >+LDADD+= ${CXXLIBS} > .endif > > OBJS+= ${SRCS:N*.h:R:S/$/.o/g}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25984
: 13723