Hi,

While compiling git master dxr, I get
Could not load tokenizer:
/home/mariusn/workspace/code-indx/dxr/sqlite/libdxr-code-tokenizer.so:
undefined symbol: sqlite3_auto_extension
which is caused by linker option ordering (see below)

diff --git a/sqlite/Makefile b/sqlite/Makefile
index 3121138..2c9693b 100644
--- a/sqlite/Makefile
+++ b/sqlite/Makefile
@@ -5,7 +5,7 @@ LDFLAGS := `pkg-config --libs sqlite3`
        $(CC) $(CFLAGS) -c $^ -o $@ -fPIC

 libdxr-code-tokenizer.so: code-tokenizer.o
-       $(CC) $(LDFLAGS) $^ -o $@ -shared
+       $(CC) $^ $(LDFLAGS) -o $@ -shared

 clean:
        rm -rf *.o libdxr-code-tokenizer.so


-- 
Regards!
http://groleo.wordpress.com
_______________________________________________
dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis

Reply via email to