diff options
| author | EuAndreh <eu@euandre.org> | 2024-10-04 18:28:34 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2024-10-05 03:03:29 -0300 |
| commit | c7f1ec84eba5213ef5927b8c6300f43c47884da1 (patch) | |
| tree | 3b2934d53fb4f13d6da07be5daccb9c3db0b4e43 /Makefile | |
| parent | Makefile: Store and return bench timing data (diff) | |
| download | golite-c7f1ec84eba5213ef5927b8c6300f43c47884da1.tar.gz golite-c7f1ec84eba5213ef5927b8c6300f43c47884da1.tar.xz | |
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
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -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 = \ |
