1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00
freebsd-ports/Mk/Uses/readline.mk
Baptiste Daroussin 9879a38486 Prevent overlinking of libreadline
Everything trying to link to readline is already passing -lreadline when needed
so all that is needed here is to pass the right path where to find it.

Reported by:	peter
2014-07-28 10:22:54 +00:00

25 lines
487 B
Makefile

# $FreeBSD$
#
# handle dependency on the readline port
#
# Feature: readline
# Usage: USES=readline
# Valid ARGS: port
#
# MAINTAINER: portmgr@FreeBSD.org
.if !defined(_INCLUDE_USES_READLINE_MK)
_INCLUDE_USES_READLINE_MK= yes
.if !exists(/usr/lib/libreadline.so)
readline_ARGS= port
.endif
.if defined(readline_ARGS) && ${readline_ARGS} == port
LIB_DEPENDS+= libreadline.so.6:${PORTSDIR}/devel/readline
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.endif
.endif