aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Francois Perrad <fperrad@gmail.com>2018-12-13 19:54:33 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2018-12-17 09:19:42 +0100
commit9b0ac875385e3bcb052fc2f376f45fa61e102673 (patch)
treeba81e977763445d0ba544b9480fcc5555183ca6a
parenta729325e12d60951dd576ef862f71446541a2c55 (diff)
downloadbuildroot-9b0ac875385e3bcb052fc2f376f45fa61e102673.tar.gz
buildroot-9b0ac875385e3bcb052fc2f376f45fa61e102673.tar.bz2
package/netsurf: make sure host libpng can be found
Commit 42c8f9f6b46e196a7c337c683a7df5ae6bd421b2 ("package/netsurf: add dependency on host-libpng for sdl") ensured host-libpng was built prior to netsurf when the SDL backend is selected. However, this is not sufficient for the netsurf build system to find libpng on the host, we need to help by providing the right HOST_CFLAGS and HOST_LDFLAGS. Fixes: http://autobuild.buildroot.net/results/d0bbd563fe5c9463316b2ba0d7ef5553be0563bc/ Signed-off-by: Francois Perrad <francois.perrad@gadz.org> [Thomas: rewrite commit message.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/netsurf/netsurf.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/netsurf/netsurf.mk b/package/netsurf/netsurf.mk
index 692d2b770c..e5a251b9c1 100644
--- a/package/netsurf/netsurf.mk
+++ b/package/netsurf/netsurf.mk
@@ -35,6 +35,9 @@ endif
ifeq ($(BR2_PACKAGE_NETSURF_SDL),y)
NETSURF_DEPENDENCIES += sdl host-libpng
NETSURF_FRONTEND = framebuffer
+NETSURF_CONFIG = \
+ HOST_CFLAGS=-I$(HOST_DIR)/include \
+ HOST_LDFLAGS='-lpng -L$(HOST_DIR)/lib'
ifeq ($(BR2_PACKAGE_FREETYPE),y)
NETSURF_DEPENDENCIES += freetype
define NETSURF_FONTLIB_CONFIGURE_CMDS
@@ -76,6 +79,7 @@ NETSURF_MAKE_OPTS = \
CC="$(TARGET_CC)" \
AR="$(TARGET_AR)" \
TMP_PREFIX=$(STAGING_DIR)/usr \
+ NETSURF_CONFIG="$(NETSURF_CONFIG)" \
PREFIX=/usr
define NETSURF_BUILD_CMDS