Date: Sun, 10 Dec 2006 04:39:34 +0900 From: Norikatsu Shigemura <nork@FreeBSD.org> To: lioux@FreeBSD.org Cc: ports@FreeBSD.org Subject: [ports/multimedia/libdv] Respect PTHREAD_LIBS Message-ID: <20061210043934.fb641d46.nork@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
Hi lioux! I found a issue of not respect PTHREAD_LIBS. Please commit following patch. Index: Makefile =================================================================== RCS file: /home/ncvs/ports/multimedia/libdv/Makefile,v retrieving revision 1.33 diff -u -r1.33 Makefile --- Makefile 20 Sep 2006 11:21:51 -0000 1.33 +++ Makefile 9 Dec 2006 19:27:53 -0000 @@ -88,6 +88,10 @@ @${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} Index: files/patch-configure =================================================================== RCS file: files/patch-configure diff -N files/patch-configure --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-configure 9 Dec 2006 19:23:02 -0000 @@ -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 + +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061210043934.fb641d46.nork>