From 6025d35fa39b8a3a04548383f90a232e02dc0c4a Mon Sep 17 00:00:00 2001 From: mengning997 Date: Wed, 30 Nov 2022 16:29:40 +0800 Subject: [PATCH] fixed a bug of static link --- Makefile | 4 ++-- README.md | 8 +------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 0fe607d..75bf5cb 100644 --- a/Makefile +++ b/Makefile @@ -157,7 +157,7 @@ obj/dbg/libre2.a: $(DOFILES) .PRECIOUS: obj/so/libre2.$(SOEXT) obj/so/libre2.$(SOEXT): $(SOFILES) libre2.symbols libre2.symbols.darwin @mkdir -p obj/so - $(MAKE_SHARED_LIBRARY) -o obj/so/libre2.$(SOEXTVER) $(SOFILES) -L./target/release + $(MAKE_SHARED_LIBRARY) -o obj/so/libre2.$(SOEXTVER) $(SOFILES) target/release/libcapi.a $(LDFLAGS) ln -sf libre2.$(SOEXTVER) $@ .PRECIOUS: obj/dbg/test/% @@ -198,7 +198,7 @@ distclean: clean .PHONY: clean clean: rm -rf obj target - rm -f re2/*.pyc + rm -f re2/*.pyc testinstall .PHONY: testofiles testofiles: $(TESTOFILES) diff --git a/README.md b/README.md index 52125a6..c734488 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # re2-rust a compatible RE2 API( -2021-11-01) by calling Rust library [regex(rure)](https://github.com/rust-lang/regex) +2021-11-01) by calling Rust library [regex](https://github.com/rust-lang/regex) ``` Shell @@ -36,13 +36,7 @@ $ make test $ g++ testinstall.cc -o testinstall -lre2 $ ./testinstall ``` -使用rure库: -``` Shell -$ cd regex-capi/ctest/ -$ gcc test.c -o test -lrure -$ ./test -``` ## Test Rusults ``` -- Gitee