From 5d66a9b1fb67cf009fe4f15028c02a8386109dc5 Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Sun, 25 May 2014 19:13:00 -0300 Subject: [PATCH] package infra: add -static to C/CXXFLAGS Generic infra packages might not use LDFLAGS at all so add -static for static builds to CFLAGS and CXXFLAGS too. Signed-off-by: Gustavo Zacarias Signed-off-by: Thomas Petazzoni --- package/Makefile.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/Makefile.in b/package/Makefile.in index 427c6d84d7..02f6e3d62c 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -374,6 +374,8 @@ endif ifeq ($(BR2_PREFER_STATIC_LIB),y) SHARED_STATIC_LIBS_OPTS = --enable-static --disable-shared +TARGET_CFLAGS += -static +TARGET_CXXFLAGS += -static TARGET_LDFLAGS += -static else SHARED_STATIC_LIBS_OPTS = --enable-static --enable-shared -- 2.30.2