aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authorTijl Coosemans <tijl@FreeBSD.org>2016-10-01 03:24:30 +0800
committerTijl Coosemans <tijl@FreeBSD.org>2016-10-01 03:24:30 +0800
commit1ee4da6dd1d50ed85cd3a614fc8a30b02f3ccf66 (patch)
tree8b44219153a720f367633c8fe248933750735b7d /ftp
parent7cb0f3c9b4ec333deb7e94ba00c6dc2d3b9c6220 (diff)
downloadfreebsd-ports-gnome-1ee4da6dd1d50ed85cd3a614fc8a30b02f3ccf66.tar.gz
freebsd-ports-gnome-1ee4da6dd1d50ed85cd3a614fc8a30b02f3ccf66.tar.zst
freebsd-ports-gnome-1ee4da6dd1d50ed85cd3a614fc8a30b02f3ccf66.zip
Let USES=localbase add -L${LOCALBASE}/lib to LIBS instead of LDFLAGS.
USES=localbase:ldflags can be used to set LDFLAGS. Normally LDFLAGS appears too early on the command line causing some ports to link with their own libraries in LOCALBASE (if installed) instead of WRKSRC. Also make use of _USES_POST so -L${LOCALBASE}/lib is added as late as possible after anything a port Makefile might set. Use _USES_POST instead of .include in libedit.mk and libarchive.mk so things like 'USES=libedit localbase:ldflags' work correctly. Fix some issues with LIBS in some ports. Switch ports that don't support LIBS to localbase:ldflags. PR: 212987 Exp-run by: antoine Approved by: portmgr (antoine)
Diffstat (limited to 'ftp')
-rw-r--r--ftp/twoftpd/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftp/twoftpd/Makefile b/ftp/twoftpd/Makefile
index 9a6455986d38..b0be39453022 100644
--- a/ftp/twoftpd/Makefile
+++ b/ftp/twoftpd/Makefile
@@ -16,7 +16,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/bin/bg-installer:devel/bglibs
LIB_DEPENDS= libcvm-v2client.so:security/cvm
-USES= localbase
+USES= localbase:ldflags
BGLIBS_LIB= ${LOCALBASE}/lib/bglibs
BGLIBS_INCLUDE= ${LOCALBASE}/include/bglibs