From b621c53816a3cf7c63a820554d9c4060b6fe8c0f Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Thu, 30 Jul 2015 18:50:18 +0000 Subject: [PATCH] bash: Export symbols for "enable -f" PR: 201959 Reviewed by: ehaupt Approved by: markj (mentor) Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D3231 --- shells/bash/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shells/bash/Makefile b/shells/bash/Makefile index 2ed80f0ae535..90b7f60228d6 100644 --- a/shells/bash/Makefile +++ b/shells/bash/Makefile @@ -4,7 +4,7 @@ PORTNAME= bash PATCHLEVEL= 39 PORTVERSION= 4.3.${PATCHLEVEL:S/^0//g} -PORTREVISION?= 2 +PORTREVISION?= 3 CATEGORIES= shells MASTER_SITES= GNU/${PORTNAME} DISTNAME= ${PORTNAME}-${PORTVERSION:R} @@ -74,6 +74,9 @@ CFLAGS+= -DIMPORT_FUNCTIONS_DEF=0 CONFIGURE_ARGS+= --enable-static-link .else CONFIGURE_ARGS+= --disable-static-link +# Bash symbols must be exported in order to link runtime plugins, i.e., +# "enable -f". (Plugins are not supported for bash-static.) +CFLAGS+= -Wl,-export-dynamic .endif post-patch: