From 10afe5f61585db3944c70808af36b74da09ae061 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 19 Oct 2016 10:12:41 +0100 Subject: fix curl/openssl library link ordering --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c5c374ba1..586e61ee1 100644 --- a/Makefile +++ b/Makefile @@ -544,7 +544,10 @@ NETSURF_FEATURE_OPENSSL_CFLAGS := -DWITH_OPENSSL NETSURF_FEATURE_ROSPRITE_CFLAGS := -DWITH_NSSPRITE NETSURF_FEATURE_NSPSL_CFLAGS := -DWITH_NSPSL -$(eval $(call pkg_config_find_and_add_enabled,OPENSSL,openssl,OpenSSL)) +# libcurl and openssl ordering matters as if libcurl requires ssl it +# needs to come first in link order to ensure its symbols can be +# resolved by the subsequent openssl + # freemint does not support pkg-config for libcurl ifeq ($(HOST),mint) CFLAGS += $(shell curl-config --cflags) @@ -552,6 +555,7 @@ ifeq ($(HOST),mint) else $(eval $(call pkg_config_find_and_add_enabled,CURL,libcurl,Curl)) endif +$(eval $(call pkg_config_find_and_add_enabled,OPENSSL,openssl,OpenSSL)) $(eval $(call pkg_config_find_and_add_enabled,PNG,libpng,PNG)) $(eval $(call pkg_config_find_and_add_enabled,BMP,libnsbmp,BMP)) -- cgit v1.2.3