Skip to content

Commit

Permalink
Reordered the LDFLAGS in the cgo directive for regex2dfa to avoid a l…
Browse files Browse the repository at this point in the history
…inker error since libfst is dependent on dl
  • Loading branch information
cohosh committed Feb 28, 2019
1 parent b4a1196 commit 59d3f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regex2dfa/regex2dfa.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package regex2dfa

// #cgo CXXFLAGS: -std=c++11 -DMARIONETTE -I${SRCDIR}/../third_party/re2/ -I${SRCDIR}/../third_party/openfst/src/include/
// #cgo LDFLAGS: -ldl ${SRCDIR}/../third_party/libs/libfst.a ${SRCDIR}/../third_party/libs/libfstscript.a ${SRCDIR}/../third_party/libs/libre2.a
// #cgo LDFLAGS: ${SRCDIR}/../third_party/libs/libfst.a ${SRCDIR}/../third_party/libs/libfstscript.a ${SRCDIR}/../third_party/libs/libre2.a -ldl
// #include <stdlib.h>
// #include <stdint.h>
// int _regex2dfa(const char* input_regex, uint32_t input_regex_len, char **out, size_t *sz);
Expand Down

0 comments on commit 59d3f11

Please sign in to comment.