kumquat-buildroot/package/netsurf
Peter Korsgaard 6da049f8ae package/netsurf: fix build
Fixes:
http://autobuild.buildroot.net/results/a5b/a5bd8969c398fc3101ffaec4aa715a827aec5770/
http://autobuild.buildroot.net/results/441/44112e8ad03f47125bbf4b231d800ebd5beef24b/

After commit 122089ad (package/netsurf: use TMP_PREFIX inside the build
directory), the build fails with:

 COMPILE: src/stylesheet.c
In file included from src/stylesheet.c:12:0:
src/stylesheet.h:14:39: fatal error: libwapcaplet/libwapcaplet.h: No such file or directory
 #include <libwapcaplet/libwapcaplet.h>

The reason is that netsurf installs its internal libraries to TMP_PREFIX
during the build, and uses pkg-config to add the correct include/linker
flags when building/linking the rest.  Unfortunately this fails badly, as we
prefix STAGING_DIR to the paths returned by pkg-config, causing gcc to fail
to find the header / library files.

This worked (by accident) when we pointed TMP_PREFIX to STAGING_DIR/usr, as
STAGING_DIR/usr/include and STAGING_DIR/usr/lib are in the standard
include/library search paths.

Fix it by adding TMP_PREFIX/include and TMP_PREFIX/lib to the
include/library search paths.  We cannot easily add them to CFLAGS/LDFLAGS
as the makefiles do not use override when appending to them, so instead pass
both in CC (which is also used for linking).

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-02-05 13:17:44 +01:00
..
0001-avoid-system-perl-dependencies.patch
0002-fix-freetype-detection.patch package/netsurf: add optional dependency on freetype 2018-12-16 21:32:16 +01:00
0003-do-not-cross-compile-nsgenbind.patch package/netsurf: enable javascript with duktape 2018-12-16 21:33:15 +01:00
0004-fix-compilation-without-curl.patch package/netsurf: turn libcurl into an optional dependency 2018-12-16 21:47:37 +01:00
Config.in package/netsurf: turn libcurl into an optional dependency 2018-12-16 21:47:37 +01:00
netsurf.hash
netsurf.mk package/netsurf: fix build 2019-02-05 13:17:44 +01:00