From bad5cc8966f2a0503167538525075e75eb2cd963 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ChangZhuo=20Chen=20=28=E9=99=B3=E6=98=8C=E5=80=AC=29?= Date: Mon, 19 May 2014 21:43:42 +0800 Subject: [PATCH 1/2] Export symbols only when it matches regex '^r3_' --- src/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Makefile.am b/src/Makefile.am index af01dc1..1c24027 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,6 +1,7 @@ lib_LTLIBRARIES = libr3.la # lib_LIBRARIES = libr3.a libr3_la_SOURCES = node.c edge.c list.c str.c token.c +libr3_la_LDFLAGS = -export-symbols-regex '^r3_' libr3_la_LIBADD=$(DEPS_LIBS) AM_CFLAGS=$(DEPS_CFLAGS) -I$(top_builddir) -I$(top_builddir)/include -Wall From 7bf513d5cd60c645484c35603ddef2c9f9c15294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ChangZhuo=20Chen=20=28=E9=99=B3=E6=98=8C=E5=80=AC=29?= Date: Mon, 19 May 2014 22:32:39 +0800 Subject: [PATCH 2/2] Update export symbols regex to ^r3_|^match_ --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 1c24027..76de9ec 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,7 @@ lib_LTLIBRARIES = libr3.la # lib_LIBRARIES = libr3.a libr3_la_SOURCES = node.c edge.c list.c str.c token.c -libr3_la_LDFLAGS = -export-symbols-regex '^r3_' +libr3_la_LDFLAGS = -export-symbols-regex '^r3_|^match_' libr3_la_LIBADD=$(DEPS_LIBS) AM_CFLAGS=$(DEPS_CFLAGS) -I$(top_builddir) -I$(top_builddir)/include -Wall