aboutsummaryrefslogtreecommitdiff
path: root/emulators/extract-xiso
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/extract-xiso')
-rw-r--r--emulators/extract-xiso/Makefile2
-rw-r--r--emulators/extract-xiso/files/Makefile2
2 files changed, 3 insertions, 1 deletions
diff --git a/emulators/extract-xiso/Makefile b/emulators/extract-xiso/Makefile
index 58178a0aa2f1..b26b058fa6c1 100644
--- a/emulators/extract-xiso/Makefile
+++ b/emulators/extract-xiso/Makefile
@@ -21,6 +21,8 @@ WRKSRC= ${WRKDIR}/extract-xiso
PLIST_FILES= bin/extract-xiso
DOC= LICENSE.TXT
+MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS}
+
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
diff --git a/emulators/extract-xiso/files/Makefile b/emulators/extract-xiso/files/Makefile
index 6fcb9cceb18b..47934ffa331d 100644
--- a/emulators/extract-xiso/files/Makefile
+++ b/emulators/extract-xiso/files/Makefile
@@ -7,7 +7,7 @@ CFLAGS+=-D__FREEBSD__
extract-xiso: extract-xiso.c
@${MAKE} libftp
- ${CC} ${CFLAGS} -lc_r -o extract-xiso extract-xiso.c ${LIBFTP_DIR}/libftp.a
+ ${CC} ${CFLAGS} ${PTHREAD_LIBS} -o extract-xiso extract-xiso.c ${LIBFTP_DIR}/libftp.a
libftp:
@${MAKE} -C ${LIBFTP_DIR}