On Tue, May 29, 2012 at 3:14 PM, Negreanu Marius <[email protected]> wrote:
> 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

Great!  Could you please submit this as a pull request to
https://github.com/mozilla/dxr?

Thanks!
--
Ehsan
<http://ehsanakhgari.org/>
_______________________________________________
dev-static-analysis mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-static-analysis

Reply via email to