Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F112002314
D1118.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
543 B
Referenced Files
None
Subscribers
None
D1118.diff
View Options
Index: share/mk/bsd.libnames.mk
===================================================================
--- share/mk/bsd.libnames.mk
+++ share/mk/bsd.libnames.mk
@@ -159,3 +159,13 @@
LIBZFS?= ${DESTDIR}${LIBDIR}/libzfs.a
LIBZFS_CORE?= ${DESTDIR}${LIBDIR}/libzfs_core.a
LIBZPOOL?= ${DESTDIR}${LIBDIR}/libzpool.a
+
+# enforce the 2 -lpthread and -lc to always be the last in that exact order
+.if defined(LDADD)
+.if ${LDADD:M-lpthread}
+LDADD:= ${LDADD:N-lpthread} -lpthread
+.endif
+.if ${LDADD:M-lc}
+LDADD:= ${LDADD:N-lc} -lc
+.endif
+.endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 12, 10:23 AM (7 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17117795
Default Alt Text
D1118.diff (543 B)
Attached To
Mode
D1118: Safety belt on -lpthread and -lc
Attached
Detach File
Event Timeline
Log In to Comment