Merge branch 'czchen-feature/export'

struct name does not need to be exported since they are just offset and
size in application binary interface (ABI). As for symbol match_entry,
updated regex will export them.

The command objdump -t libr3.so.0 can be used to see export symbols. If
the second column of a symbol is marked as g, it is exported.
This commit is contained in:
c9s 2014-05-20 01:26:50 +08:00
commit f4e8d8fdc9

View file

@ -1,6 +1,7 @@
lib_LTLIBRARIES = libr3.la lib_LTLIBRARIES = libr3.la
# lib_LIBRARIES = libr3.a # lib_LIBRARIES = libr3.a
libr3_la_SOURCES = node.c edge.c str.c token.c libr3_la_SOURCES = node.c edge.c str.c token.c
libr3_la_LDFLAGS = -export-symbols-regex '^r3_|^match_'
libr3_la_LIBADD=$(DEPS_LIBS) libr3_la_LIBADD=$(DEPS_LIBS)
AM_CFLAGS=$(DEPS_CFLAGS) -I$(top_builddir) -I$(top_builddir)/include -Wall AM_CFLAGS=$(DEPS_CFLAGS) -I$(top_builddir) -I$(top_builddir)/include -Wall