summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2014-08-06 09:18:04 -0400
committerAnthony G. Basile <blueness@gentoo.org>2014-08-06 09:18:11 -0400
commitd97aec9c404bdd1e5743a4331d4488e23d9583f7 (patch)
tree814c0ff4393def8b8ce2e3b155d29ee3dd4031c9
parentcb2823bc026644ae56c9d257591d28a4f3110f4b (diff)
src/libudev/libudev.sym: mark most symbols as hidden
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r--src/libudev/Makefile.am15
-rw-r--r--src/libudev/libudev.sym7
-rw-r--r--test/Makefile.am2
3 files changed, 16 insertions, 8 deletions
diff --git a/src/libudev/Makefile.am b/src/libudev/Makefile.am
index 3b1b075a64..b7f420982e 100644
--- a/src/libudev/Makefile.am
+++ b/src/libudev/Makefile.am
@@ -25,6 +25,8 @@ lib_LTLIBRARIES = \
libudev.la
libudev_la_SOURCES =\
+ libudev.sym \
+ libudev-private.h \
libudev.c \
libudev-list.c \
libudev-util.c \
@@ -32,8 +34,13 @@ libudev_la_SOURCES =\
libudev-enumerate.c \
libudev-monitor.c \
libudev-queue.c \
+ libudev-hwdb-def.h \
libudev-hwdb.c
+libudev_la_CFLAGS = \
+ $(AM_CFLAGS) \
+ -fvisibility=hidden
+
noinst_HEADERS = \
libudev-hwdb-def.h \
libudev-private.h
@@ -49,11 +56,13 @@ libudev_la_LDFLAGS = \
libudev_la_LIBADD = \
$(top_builddir)/src/shared/libudev_shared.la
-libudev_private_la_SOURCES =\
+libudev_private_la_SOURCES = \
+ $(libudev_la_SOURCES) \
libudev-device-private.c
-libudev_private_la_LIBADD =\
- libudev.la
+libudev_private_la_CFLAGS = \
+ $(AM_CFLAGS) \
+ -fvisibility=default
noinst_LTLIBRARIES = \
libudev-private.la
diff --git a/src/libudev/libudev.sym b/src/libudev/libudev.sym
index 7062e29bda..95cd1c7b9e 100644
--- a/src/libudev/libudev.sym
+++ b/src/libudev/libudev.sym
@@ -93,6 +93,8 @@ global:
udev_set_userdata;
udev_unref;
udev_util_encode_string;
+local:
+ *;
};
LIBUDEV_189 {
@@ -112,8 +114,3 @@ LIBUDEV_199 {
global:
udev_device_set_sysattr_value;
} LIBUDEV_196;
-
-LIBUDEV_internal {
-global:
- *;
-} LIBUDEV_199;
diff --git a/test/Makefile.am b/test/Makefile.am
index 4b2b431865..14d86e7f70 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -39,6 +39,7 @@ test_utf8_CFLAGS = \
$(AM_CFLAGS)
test_utf8_LDADD = \
+ $(top_builddir)/src/shared/libudev_shared.la \
$(top_builddir)/src/libudev/libudev-private.la
test_device_nodes_SOURCES = \
@@ -48,6 +49,7 @@ test_device_nodes_CFLAGS = \
$(AM_CFLAGS)
test_device_nodes_LDADD = \
+ $(top_builddir)/src/shared/libudev_shared.la \
$(top_builddir)/src/libudev/libudev-private.la
if HAVE_LIBKMOD