summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-02-17 11:29:19 +0100
committerThomas Haller <thaller@redhat.com>2015-02-17 12:02:26 +0100
commitfcfdff7bcd722fc0ab390996948e59c20309a01a (patch)
treeaa296be9241f3e13d9acc3aa42cfbfa27e831cfd
parent4628585e5a2cfe6e58d75aa8b8789768ba50210e (diff)
downloadNetworkManager-danw/libnm-core-shared-bgo744031.tar.gz
fixup! libnm, core: build libnm-core-private.so and use itdanw/libnm-core-shared-bgo744031
-rw-r--r--libnm/Makefile.am7
1 files changed, 4 insertions, 3 deletions
diff --git a/libnm/Makefile.am b/libnm/Makefile.am
index 1d5e512a62..5b9c87a3d8 100644
--- a/libnm/Makefile.am
+++ b/libnm/Makefile.am
@@ -139,14 +139,15 @@ pkglib_LTLIBRARIES = libnm-core-private.la
libnm_core_private_la_SOURCES = \
libnm-core.c
+libnm_core_private_la_CFLAGS =
+
libnm_core_private_la_LDFLAGS = \
-Wl,--filter=libnm.so \
-avoid-version
libnm-core.c: $(top_builddir)/libnm-core/.libs/libnm-core.a
- $(AM_V_GEN) (echo '#pragma GCC diagnostic ignored "-Wmissing-prototypes"' > $@ && \
- echo "#include <glib.h>" >> $@ && \
- nm $< | awk '$$2 == "T" && $$3 ~ /^_*nm/ { print "void " $$3 "(void) { g_assert_not_reached (); }" }' >> $@) || rm -f $@
+ $(AM_V_GEN) (echo "#include <signal.h>" > $@ && \
+ nm $< | awk '$$2 == "T" && $$3 ~ /^_?nm_/ { print "void "$$3"(void);"; print "void "$$3"(void) { raise (SIGABRT); }" }' >> $@) || rm -f $@
CLEANFILES = libnm-core.c