[ragel-users] [PATCH 1/3] add -no-undefined to LDFLAGS for libfsm and libragel

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


Otherwise libtool will refuse to build shared libraries on Cygwin.
---
 src/Makefile.am | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/Makefile.am b/src/Makefile.am
index 693837c1..a9ad169a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -56,6 +56,8 @@ dist_libfsm_la_SOURCES = \
 nodist_libfsm_la_SOURCES = \
 	version.h
 
+libfsm_la_LDFLAGS = -no-undefined
+
 #
 # libragel: ragel program minus host-specific code
 #
@@ -65,6 +67,8 @@ 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
 
+libragel_la_LDFLAGS = -no-undefined
+
 #
 # ragel program.
 #
-- 
2.17.0




More information about the ragel-users mailing list