mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -09:00
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 <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
8d764327a6
commit
5d66a9b1fb
@@ -374,6 +374,8 @@ endif
|
|||||||
|
|
||||||
ifeq ($(BR2_PREFER_STATIC_LIB),y)
|
ifeq ($(BR2_PREFER_STATIC_LIB),y)
|
||||||
SHARED_STATIC_LIBS_OPTS = --enable-static --disable-shared
|
SHARED_STATIC_LIBS_OPTS = --enable-static --disable-shared
|
||||||
|
TARGET_CFLAGS += -static
|
||||||
|
TARGET_CXXFLAGS += -static
|
||||||
TARGET_LDFLAGS += -static
|
TARGET_LDFLAGS += -static
|
||||||
else
|
else
|
||||||
SHARED_STATIC_LIBS_OPTS = --enable-static --enable-shared
|
SHARED_STATIC_LIBS_OPTS = --enable-static --enable-shared
|
||||||
|
|||||||
Reference in New Issue
Block a user