chiark / gitweb /
build-sys: export experimental symbols only with --enable-kdbus
authorKay Sievers <kay@vrfy.org>
Wed, 19 Feb 2014 19:16:31 +0000 (20:16 +0100)
committerKay Sievers <kay@vrfy.org>
Wed, 19 Feb 2014 19:53:18 +0000 (20:53 +0100)
Makefile.am
src/libsystemd/.gitignore
src/libsystemd/libsystemd.sym.m4 [moved from src/libsystemd/libsystemd.sym with 99% similarity]

index 724e89b..d275021 100644 (file)
@@ -1925,7 +1925,6 @@ systemd_tty_ask_password_agent_LDADD = \
 
 # ------------------------------------------------------------------------------
 libsystemd_internal_la_SOURCES = \
-       src/libsystemd/libsystemd.sym \
        src/systemd/sd-bus.h \
        src/systemd/sd-bus-protocol.h \
        src/systemd/sd-bus-vtable.h \
@@ -1991,6 +1990,7 @@ libsystemd_internal_la_SOURCES = \
        src/login/login-shared.h
 
 nodist_libsystemd_internal_la_SOURCES = \
+       src/libsystemd/libsystemd.sym \
        src/libsystemd/sd-bus/bus-error-mapping.c
 
 libsystemd_internal_la_CFLAGS = \
@@ -2012,14 +2012,19 @@ noinst_LTLIBRARIES += \
        libsystemd-dump.la
 
 EXTRA_DIST += \
+       src/libsystemd/libsystemd.sym.m4 \
+       src/libsystemd/libsystemd.pc.in \
        src/libsystemd/sd-bus/bus-error-mapping.gperf \
        src/libsystemd/sd-bus/DIFFERENCES \
-       src/libsystemd/sd-bus/GVARIANT-SERIALIZATION \
-       src/libsystemd/libsystemd.pc.in
+       src/libsystemd/sd-bus/GVARIANT-SERIALIZATION
 
 CLEANFILES += \
+       src/libsystemd/libsystemd.sym \
        src/libsystemd/sd-bus/bus-error-mapping.c
 
+BUILT_SOURCES += \
+       src/libsystemd/libsystemd.sym
+
 libsystemd_la_SOURCES = \
        $(libsystemd_internal_la_SOURCES) \
        $(libsystemd_journal_internal_la_SOURCES)
@@ -2034,7 +2039,7 @@ libsystemd_la_CFLAGS = \
 libsystemd_la_LDFLAGS = \
        $(AM_LDFLAGS) \
        -version-info $(LIBSYSTEMD_CURRENT):$(LIBSYSTEMD_REVISION):$(LIBSYSTEMD_AGE) \
-       -Wl,--version-script=$(top_srcdir)/src/libsystemd/libsystemd.sym
+       -Wl,--version-script=$(top_builddir)/src/libsystemd/libsystemd.sym
 
 libsystemd_la_LIBADD = \
        libsystemd-shared.la \
@@ -4879,7 +4884,7 @@ define generate-sym-test
 endef
 
 test-libsystemd-sym.c: \
-               src/libsystemd/libsystemd.sym \
+               $(top_builddir)/src/libsystemd/libsystemd.sym \
                src/systemd/sd-journal.h \
                src/systemd/sd-daemon.h \
                src/systemd/sd-login.h \
index 50a1692..d48e1cd 100644 (file)
@@ -1 +1,2 @@
+/libsystemd.sym
 /libsystemd.pc
similarity index 99%
rename from src/libsystemd/libsystemd.sym
rename to src/libsystemd/libsystemd.sym.m4
index dda0447..2ba0207 100644 (file)
@@ -123,6 +123,7 @@ global:
         sd_session_get_remote_user;
         sd_session_get_remote_host;
 
+m4_ifdef(`HAVE_KDBUS',
         /* sd-bus */
         sd_bus_default;
         sd_bus_default_user;
@@ -376,7 +377,7 @@ global:
         /* sd-utf8 */
         sd_utf8_is_valid;
         sd_ascii_is_valid;
-
+)
 local:
        *;
 };