Skip to content

Commit

Permalink
build: filter exported symbols by libtool regexes
Browse files Browse the repository at this point in the history
This should be equivalent to the previous solution,
just a little less verbose.

Signed-off-by: Ferenc Wágner <wferi@debian.org>
  • Loading branch information
wferi committed Jan 29, 2018
1 parent f77b5f3 commit 3f82052
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 43 deletions.
8 changes: 1 addition & 7 deletions libknet/Makefile.am
Expand Up @@ -11,10 +11,6 @@ MAINTAINERCLEANFILES = Makefile.in

include $(top_srcdir)/build-aux/check.mk

SYMFILE = libknet_exported_syms

EXTRA_DIST = $(SYMFILE)

SUBDIRS = . tests man

libversion = 1:0:0
Expand Down Expand Up @@ -81,10 +77,8 @@ libknet_la_SOURCES = $(sources)

libknet_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS)

EXTRA_libknet_la_DEPENDENCIES = $(SYMFILE)

libknet_la_LDFLAGS = $(AM_LDFLAGS) \
-Wl,--version-script=$(srcdir)/$(SYMFILE) \
-export-symbols-regex '^knet_' \
-Wl,-rpath=$(pkglibdir) \
-version-number $(libversion)

Expand Down
15 changes: 0 additions & 15 deletions libknet/libknet_exported_syms

This file was deleted.

8 changes: 2 additions & 6 deletions libtap/Makefile.am
Expand Up @@ -11,9 +11,7 @@ MAINTAINERCLEANFILES = Makefile.in
include $(top_srcdir)/build-aux/check.mk


SYMFILE = libtap_exported_syms

EXTRA_DIST = $(SYMFILE) tap_updown_bad tap_updown_good api-test-coverage
EXTRA_DIST = tap_updown_bad tap_updown_good api-test-coverage

sources = libtap.c

Expand All @@ -34,10 +32,8 @@ lib_LTLIBRARIES = libtap.la

libtap_la_SOURCES = $(sources)

EXTRA_libtap_la_DEPENDENCIES = $(SYMFILE)

libtap_la_LDFLAGS = $(AM_LDFLAGS) \
-Wl,-version-script,$(srcdir)/$(SYMFILE) \
-export-symbols-regex '^tap_' \
-version-number $(libversion)

TESTS = $(check_PROGRAMS)
Expand Down
15 changes: 0 additions & 15 deletions libtap/libtap_exported_syms

This file was deleted.

0 comments on commit 3f82052

Please sign in to comment.