From c7f1ec84eba5213ef5927b8c6300f43c47884da1 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Fri, 4 Oct 2024 18:28:34 -0300 Subject: Remove support for dynamically loading extensions Defer to the user to (statically) include the extension with the rest of the code, and manually registering it, as described in [0]. If support for dynamic libraries and run-time dynamism in general is desired, one shouldn't be looking for it in C or Go, who aren't the greatest bastions of such dynamism, and instead consider more appropriate languages, like Common Lisp or Smalltalk. [0]: https://sqlite.org/loadext.html#statically_linking_a_run_time_loadable_extension --- Makefile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ca56d53..d2545b1 100644 --- a/Makefile +++ b/Makefile @@ -70,7 +70,6 @@ derived-assets = \ tests/main.bin \ $(functional-tests.a) \ $(functional-tests.bin) \ - tests/functional/streq.so \ $(fuzz-targets.a) \ $(fuzz-targets.bin) \ $(benchmarks.a) \ @@ -127,16 +126,9 @@ $(fuzz-targets.a): $(functional-tests.bin) $(fuzz-targets.bin) $(benchmarks.bin): go tool link $(GOLDFLAGS) -o $@ -L src --extldflags '$(LDLIBS)' $*.a -tests/functional/streq.so: tests/functional/streq.c - $(CC) $(CFLAGS) $(LDFLAGS) -fPIC --shared -o $@ $*.c - -tests/functional/extension.bin-check: tests/functional/streq.so - LD_LIBRARY_PATH=$(@D) $(EXEC)$*.bin - -functional-tests.bin-check = $(functional-tests-butone.go:.go=.bin-check) - +functional-tests.bin-check = $(functional-tests.go:.go=.bin-check) tests.bin-check = \ tests/main.bin-check \ $(functional-tests.bin-check) \ @@ -146,7 +138,6 @@ $(tests.bin-check): $(EXEC)$*.bin check-unit: $(tests.bin-check) -check-unit: tests/functional/extension.bin-check integration-tests = \ -- cgit v1.2.3