kumquat-buildroot/package/netsurf
Thomas Petazzoni 84be6912bb package/netsurf: use HOST_CFLAGS/HOST_LDFLAGS
In commit 9b0ac87538 ("package/netsurf:
make sure host libpng can be found"), the netsurf package was modified
to pass -L$(HOST_DIR)/lib so that libpng is found at link time.

However, this is not sufficient: for the host tool to work at runtime,
we need to have the proper RPATH encoded in the host
binary. Otherwise, building netsurf fails with:

build/Linux-framebuffer/tools/convert_image: error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory
make[3]: *** [build/Linux-framebuffer/image-caret_image.c] Error 127

So basically, we need to build not only with -L$(HOST_DIR)/lib, but
with the complete HOST_LDFLAGS provided by Buildroot.

For consistency, we also use HOST_CFLAGS instead of hardcoding
-I$(HOST_DIR)/include.

It is worth mentioning that we must use single quotes here, because
the NETSURF_CONFIG variable value then gets put within double quotes
to be passed to the netsurf build system.

Fixes:

  http://autobuild.buildroot.net/results/4ff6a8c4017d006a4b6b9ca369a569fa72862900/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2018-12-28 11:51:23 +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: use HOST_CFLAGS/HOST_LDFLAGS 2018-12-28 11:51:23 +01:00