mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Simplify PTHREAD_LIBS fix by removing useless patch
Suggested by: danfe Feature safe: yes
This commit is contained in:
parent
25b9e9bf31
commit
7d90239629
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=307957
@ -32,7 +32,7 @@ post-patch:
|
||||
@${REINPLACE_CMD} \
|
||||
's|/usr/share/|${PREFIX}/share/|g' ${WRKSRC}/bonnie++.8
|
||||
@${REINPLACE_CMD} \
|
||||
's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
||||
's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
|
||||
|
||||
post-install:
|
||||
.if ${PORT_OPTIONS:MDOCS}
|
||||
|
@ -1,23 +0,0 @@
|
||||
--- configure.orig 2011-01-18 22:36:19.000000000 +0100
|
||||
+++ configure 2012-11-27 17:10:24.000000000 +0100
|
||||
@@ -3925,7 +3925,7 @@
|
||||
linux_pthread="#define LINUX_PTHREAD"
|
||||
fi
|
||||
|
||||
-LDFLAGS=-lpthread
|
||||
+LDFLAGS=%%PTHREAD_LIBS%%
|
||||
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
@@ -3944,10 +3944,7 @@
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_cxx_try_link "$LINENO"; then :
|
||||
- thread_ldflags="-lpthread"
|
||||
-
|
||||
-else
|
||||
- thread_ldflags="-pthread"
|
||||
+ thread_ldflags="%%PTHREAD_LIBS%%"
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
Loading…
Reference in New Issue
Block a user