- autoreconf -vfi
- ./configure
- make
Last active
August 9, 2017 09:51
-
-
Save tpeng/9073881 to your computer and use it in GitHub Desktop.
Build crfsuite on macos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/configure.in b/configure.in | |
index dafbcf6..743037c 100644 | |
--- a/configure.in | |
+++ b/configure.in | |
@@ -30,7 +30,7 @@ dnl ------------------------------------------------------------------ | |
AM_INIT_AUTOMAKE(crfsuite, 0.12) | |
AC_CONFIG_HEADERS(config.h) | |
AM_MAINTAINER_MODE | |
-AM_C_PROTOTYPES | |
+ | |
dnl ------------------------------------------------------------------ | |
diff --git a/swig/python/setup.py b/swig/python/setup.py | |
index 9442110..c0ce097 100644 | |
--- a/swig/python/setup.py | |
+++ b/swig/python/setup.py | |
@@ -26,7 +26,7 @@ crfsuite_module = Extension( | |
'export_wrap.cpp', | |
], | |
# include_dirs=['../../include',], | |
- extra_link_args=['-shared'], | |
+ extra_link_args=['-shared', '-Wl,-undefined,dynamic_lookup'], | |
# library_dirs=['../../lib/crf',], | |
libraries=['crfsuite'], | |
# extra_objects=['../../lib/crf/libcrfsuite.la'], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks! It works. but I find it no need to execute below command