mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
Fix build on systems without /usr/include/getopt.h (4.x).
Submitted by: kris
This commit is contained in:
parent
af9b77d5a3
commit
8f66818e0f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=74038
@ -31,6 +31,11 @@ MAKE_ENV= PTHREAD_LDFLAGS="${PTHREAD_LDFLAGS}" \
|
||||
PTHREAD_LDFLAGS+= -llstdc++ -llsupc++
|
||||
.endif
|
||||
|
||||
.if !exists(/usr/include/getopt.h)
|
||||
LIB_DEPENDS+= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
|
||||
PTHREAD_LDFLAGS+= -lgnugetopt
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/sip/b2b/bin.nodebug.FreeBSD.i386/b2bua \
|
||||
${PREFIX}/bin
|
||||
|
Loading…
Reference in New Issue
Block a user