1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

Respect PTHREAD_LIBS.

This commit is contained in:
Norikatsu Shigemura 2006-12-15 13:29:55 +00:00
parent 1aa27e0a63
commit bf8d682197
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=179854
2 changed files with 15 additions and 0 deletions

View File

@ -88,6 +88,10 @@ post-patch:
@${REINPLACE_CMD} -E -e 's|(@REQUIRES_NOPKGCONFIG@)|-L${LOCALBASE}/include \1|' \
${WRKSRC}/libdv.pc.in
pre-configure:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' \
${WRKSRC}/configure
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}

View File

@ -0,0 +1,11 @@
--- configure.orig Tue Nov 30 12:23:44 2004
+++ configure Sun Dec 10 04:22:48 2006
@@ -20393,8 +20393,6 @@
# FreeBSD and OpenBSD have neither -lpthread nor integrated pthreads in libc.
# Instead -pthread is used to the compiler/linker to get pthreads working right.
if test x$OS_ARCH = xFreeBSD -o x$OS_ARCH = xOpenBSD; then
- CFLAGS="$CFLAGS -pthread"
- CXXFLAGS="$CXXFLAGS -pthread"
fi