From 32ea29e1ba4366fe015d1632d3c21cf9de24802a Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Wed, 13 Apr 2016 20:20:52 -0700 Subject: [PATCH] lib: only export ^sp_ symbols --- lib/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Makefile.am b/lib/Makefile.am index ef782571..5636c1ab 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -114,6 +114,9 @@ libsysprof_@API_VERSION@_la_LIBADD = \ $(NULL) libsysprof_@API_VERSION@_la_LDFLAGS = \ + -avoid-version \ + -no-undefined \ + -export-symbols-regex '^(sp_).*' \ $(WARN_LDFLAGS) \ $(NULL)