summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libudev/Makefile.am15
-rw-r--r--src/libudev/libudev.sym7
2 files changed, 14 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;