summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2016-10-11 16:29:51 +0200
committerAleksander Morgado <aleksander@aleksander.es>2016-10-12 11:18:45 +0200
commitb032a98b14e447107db2b1ff43c5a8c5fd3277d5 (patch)
treecc6dcce3a46085c4c0c32d08f843c33cc4c07ab5
parentc16aed50dfc066f572cf1d8cbcedb4581f687fd9 (diff)
plugins: only export useful symbols
This should avoid poluting the name space and also make module loading faster. (cherry picked from commit 5a43f90a48d3b1494dcd338b2363eda783063e31)
-rw-r--r--plugins/Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index 31d222a7..c8a80c12 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -41,6 +41,7 @@ PLUGIN_COMMON_COMPILER_FLAGS = \
PLUGIN_COMMON_LINKER_FLAGS = \
-module \
-avoid-version \
+ -export-symbols-regex '^mm_plugin_major_version$$|^mm_plugin_minor_version$$|^mm_plugin_create$$' \
$(NULL)
# UDev rules