From 5c2cee9461ef1199f2e80ddcda699595b11fdf08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Fri, 15 Jul 2016 13:48:22 +0200 Subject: build: properly set LDFLAGS for standalone build dependencies Might fix #248 --- GNUmakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index ae8b90d..48bf182 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -179,9 +179,9 @@ local: clean standalone: clean [ ! -e dependency/build/local ] || $(MAKE) dependencies-clean - ./configure --environment-only --static + ./configure CFLAGS="-I$(DEPS_INC)" LDFLAGS="-L$(DEPS_LIB)" --environment-only --static CFLAGS="$(CFLAGS)" $(MAKE) dependency/build/libmusl-install - PATH=$(DEPS_BIN):$$PATH PKG_CONFIG_PATH= PKG_CONFIG_LIBDIR= CFLAGS="$(CFLAGS)" $(MAKE) \ + PATH=$(DEPS_BIN):$$PATH PKG_CONFIG_PATH= PKG_CONFIG_LIBDIR= CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" $(MAKE) \ CC=musl-gcc dependency/build/standalone PATH=$(DEPS_BIN):$$PATH PKG_CONFIG_PATH= PKG_CONFIG_LIBDIR= ./configure --static \ CFLAGS="-I$(DEPS_INC) --static -Wl,--as-needed" LDFLAGS="-L$(DEPS_LIB)" CC=musl-gcc -- cgit v1.2.3