mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
. Use ${PTHREAD_LIBS} when compiling the testos programme rather than
inventing our own version. Approved by: phantom (maintainer)
This commit is contained in:
parent
256164b569
commit
aac4424426
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=141862
@ -184,17 +184,11 @@ Please place the patchset in ${DISTDIR}.\n
|
||||
|
||||
TESTPROG=testos
|
||||
|
||||
.if ${OSVERSION} > 500000
|
||||
LINKIT= -lc_r
|
||||
.else
|
||||
LINKIT= -pthread
|
||||
.endif
|
||||
|
||||
check-os:
|
||||
.if !defined(SKIP_OS_TEST)
|
||||
-@mkdir -p ${WRKDIR} ; \
|
||||
rm -f ${WRKDIR}/${TESTPROG} ; \
|
||||
gcc ${LINKIT} -o ${WRKDIR}/${TESTPROG} \
|
||||
gcc ${PTHREAD_LIBS} -o ${WRKDIR}/${TESTPROG} \
|
||||
${FILESDIR}/${TESTPROG}.c > /dev/null 2>&1
|
||||
@if [ ! -f ${WRKDIR}/${TESTPROG} ] ; \
|
||||
then \
|
||||
|
Loading…
Reference in New Issue
Block a user