Package: freebsd-utils / 10.1~svn273304-1

devd_link_c++_statically.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
Index: freebsd-utils-jessie/src/sbin/devd/Makefile
===================================================================
--- freebsd-utils-jessie.orig/src/sbin/devd/Makefile
+++ freebsd-utils-jessie/src/sbin/devd/Makefile
@@ -13,6 +13,18 @@ NO_SHARED?=YES
 DPADD=	${LIBL} ${LIBUTIL}
 LDADD=	-ll -lutil
 
+LIBSTDC++ != \
+	g++ -print-file-name=crt1.o ; \
+	g++ -print-file-name=crti.o ; \
+	g++ -print-file-name=crtn.o ; \
+	g++ -print-file-name=crtbegin.o ; \
+	g++ -print-file-name=crtend.o ; \
+	g++ -print-file-name=libstdc++.a
+
+LDADD+= -nostdlib \
+	${LIBSTDC++} \
+	-lgcc_s -lgcc -lc
+
 YFLAGS+=-v
 CFLAGS+=-I. -I${.CURDIR}