From 1c706be0732a6fe275ef13b0b360d587228c4a24 Mon Sep 17 00:00:00 2001 From: Shteryana Shopova Date: Thu, 16 Dec 2010 15:18:53 +0000 Subject: [PATCH] Pass proper -Wl,-export-dynamic to ld. Thus bsnmpd(1) compiled with clang properly exports its symbols to the modules. Submitted by: dim --- usr.sbin/bsnmpd/bsnmpd/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/bsnmpd/bsnmpd/Makefile b/usr.sbin/bsnmpd/bsnmpd/Makefile index f7e9b238fcca..80b14e2f9ce9 100644 --- a/usr.sbin/bsnmpd/bsnmpd/Makefile +++ b/usr.sbin/bsnmpd/bsnmpd/Makefile @@ -31,7 +31,7 @@ CFLAGS+= -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DHAVE_ERR_H -DHAVE_STRLCPY DPADD= ${LIBBEGEMOT} ${LIBBSNMP} ${LIBWRAP} LDADD= -lbegemot -lbsnmp -lwrap -LDFLAGS= -export-dynamic +LDFLAGS= -Wl,-export-dynamic .if ${MK_OPENSSL} != "no" CFLAGS+= -DHAVE_LIBCRYPTO