From: Gustavo Zacarias Date: Sun, 25 May 2014 22:13:00 +0000 (-0300) Subject: package infra: add -static to C/CXXFLAGS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d66a9b1fb67cf009fe4f15028c02a8386109dc5;p=buildroot.git 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 --- 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