[ragel-users] [PATCH 3/3] avoid undefined symbols in libragel

Ken Brown kbrown at cornell.edu
Fri Nov 16 14:58:55 UTC 2018


Move some sources from ragel to libragel.
---
 src/Makefile.am | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 0aeee6e2..92df2471 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -67,6 +67,14 @@ dist_libragel_la_SOURCES = \
 	parsedata.h parsetree.h inputdata.h pcheck.h reducer.h rlscan.h load.h \
 	parsetree.cc parsedata.cc inputdata.cc load.cc reducer.cc
 
+nodist_libragel_la_SOURCES = \
+	parse.c rlreduce.cc
+
+if WITH_RAGEL_KELBT
+nodist_libragel_la_SOURCES += \
+	rlscan.cc rlparse.cc rlparse.h
+endif
+
 libragel_la_LDFLAGS = -no-undefined
 
 libragel_la_LIBADD = libfsm.la $(COLM_LD)
@@ -79,9 +87,6 @@ ragel_CPPFLAGS = -I$(top_srcdir)/aapl
 dist_ragel_SOURCES = \
 	main.cc
 
-nodist_ragel_SOURCES = \
-	parse.c rlreduce.cc
-
 ragel_LDADD = libragel.la libfsm.la $(COLM_LD)
 ragel_DEPENDENCIES = libragel.la libfsm.la $(COLM_LIBDEP)
 
@@ -90,9 +95,6 @@ BUILT_SOURCES = \
 	parse.c rlreduce.cc
 
 if WITH_RAGEL_KELBT
-nodist_ragel_SOURCES += \
-	rlscan.cc rlparse.cc rlparse.h 
-
 BUILT_SOURCES += \
 	rlscan.cc rlparse.cc rlparse.h 
 endif
-- 
2.17.0




More information about the ragel-users mailing list