Commit 483da403 authored by Piotr Tworek's avatar Piotr Tworek Committed by Raine Makelainen

[embedlite-components] Fix compilation against system nspr.

Don't hardcode the system nspr path to /usr/include/nspr4. Instead use
pkg-config to determine correct path. Do it only in case we're building
the code against system nspr. In case we use bundled gecko version
system include paths should not be passed to the compiler.
parent 62913153
......@@ -57,7 +57,11 @@ AS_IF([test "x$with_system_nspr" = "xyes"],
if test "$OBJ_PATH" != ""; then
ENGINE_CFLAGS="-I$OBJ_PATH/dist/include -I$OBJ_PATH/dist/include/nspr -I$OBJ_PATH/dist/include/mozilla -I$OBJ_PATH/dist/include/dom -I/usr/include/nspr4"
ENGINE_CFLAGS="-I$OBJ_PATH/dist/include -I$OBJ_PATH/dist/include/mozilla -I$OBJ_PATH/dist/include/dom"
AS_IF([test "x$with_system_nspr" = "xyes"],
[ENGINE_CFLAGS="${ENGINE_CFLAGS} `pkg-config --cflags-only-I nspr`"],
[ENGINE_CFLAGS="${ENGINE_CFLAGS} -I$OBJ_PATH/dist/include/nspr"]
ENGINE_LIBS="-L$OBJ_PATH/dist/sdk/lib -lxpcomglue_s -lxul"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment