From f493fce6a3261de0136fe170a7b704c4fe236b88 Mon Sep 17 00:00:00 2001 From: tijl Date: Fri, 30 Sep 2016 19:24:30 +0000 Subject: 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) --- databases/firebird25-server/Makefile | 3 +-- databases/rocksdb/Makefile | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'databases') diff --git a/databases/firebird25-server/Makefile b/databases/firebird25-server/Makefile index d5ec0ffc7c5e..e712ad3c0584 100644 --- a/databases/firebird25-server/Makefile +++ b/databases/firebird25-server/Makefile @@ -90,8 +90,7 @@ UDF_SQL= src/extlib/ib_udf2.sql src/extlib/fbudf/fbudf.sql PKGINSTALL?= ${PKGDIR}/pkg-install-server .else # Client part stuff -USES+= libedit -LDFLAGS+= -L${LOCALBASE}/lib # to link in lncurses pulled in by libedit +USES+= libedit CONFIGURE_ARGS+= --with-system-editline CONFIGURE_ENV+= ac_cv_lib_edit_readline="yes" diff --git a/databases/rocksdb/Makefile b/databases/rocksdb/Makefile index ebf06475aaa1..7e3f17ae1fe8 100644 --- a/databases/rocksdb/Makefile +++ b/databases/rocksdb/Makefile @@ -24,7 +24,7 @@ CPPFLAGS+= -DOS_FREEBSD MAKE_ENV= CXX=${CXX} USE_CXXSTD= c++11 USE_LDCONFIG= yes -USES= compiler:c++11-lib gmake localbase +USES= compiler:c++11-lib gmake localbase:ldflags PORTDATA= make_config.mk -- cgit