Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175426902
D19700.id55422.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
954 B
Referenced Files
None
Subscribers
None
D19700.id55422.diff
View Options
Index: graphics/ilmbase/Makefile
===================================================================
--- graphics/ilmbase/Makefile
+++ graphics/ilmbase/Makefile
@@ -24,7 +24,10 @@
# The configure script uses bash arrays
CONFIGURE_SHELL=${BASH_CMD}
CONFIGURE_ARGS= --disable-static
-MAKE_ARGS+= PTHREAD_LIBS="-pthread -lpthread"
+# libtool links C++ libraries with -nostdlib, which prevents -pthread from
+# having an effect (at least with clang). Make sure we also pass -lpthread so
+# we do link against libthr.so.
+CONFIGURE_ENV+= PTHREAD_LIBS="-pthread -lpthread"
TEST_TARGET= check
PORTDOCS= AUTHORS ChangeLog README.md
@@ -48,7 +51,6 @@
post-configure:
${REINPLACE_CMD} -e 's/#define HAVE_UCONTEXT_H 1/#undef HAVE_UCONTEXT_H/' ${WRKSRC}/config/IlmBaseConfig.h
- ${REINPLACE_CMD} -e '/^libIlmThread_la_LIBADD/s/$$/ $$(PTHREAD_LIBS)/' ${WRKSRC}/IlmThread/Makefile
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libHalf.so.${VER}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 11, 6:57 PM (55 m, 40 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40563224
Default Alt Text
D19700.id55422.diff (954 B)
Attached To
Mode
D19700: graphics/ilmbase: Simplify pthread workaround.
Attached
Detach File
Event Timeline
Log In to Comment