From cbc83c6d0c05cf87401071311c0f4d55e617d789 Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Sun, 19 Jul 2015 17:21:11 +0200 Subject: [PATCH] unix: do not discard environmental LDFLAGS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The build environment may carry additional global LDFLAGS, which are currently being discarded. Debian uses them for distro-wide hardening, see dpkg-buildflags(1). Fix by not overwriting the variable. Signed-off-by: Luca Bruno PR-URL: https://github.com/libuv/libuv/pull/447 Reviewed-By: Saúl Ibarra Corretgé --- config-unix.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config-unix.mk b/config-unix.mk index db21daa0..82958cf9 100644 --- a/config-unix.mk +++ b/config-unix.mk @@ -22,7 +22,7 @@ E= CSTDFLAG=--std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter CFLAGS += -g CPPFLAGS += -I$(SRCDIR)/src -LDFLAGS=-lm -pthread +LDFLAGS += -lm -pthread CPPFLAGS += -D_LARGEFILE_SOURCE CPPFLAGS += -D_FILE_OFFSET_BITS=64