diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2014-05-25 19:13:00 -0300 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-07-30 20:25:10 +0200 |
commit | 5d66a9b1fb67cf009fe4f15028c02a8386109dc5 (patch) | |
tree | b5574b57c9dcccc7a2436f55507014465e4bf910 | |
parent | 8d764327a697a2572bba96878972c1a469f864f3 (diff) | |
download | buildroot-5d66a9b1fb67cf009fe4f15028c02a8386109dc5.tar.gz buildroot-5d66a9b1fb67cf009fe4f15028c02a8386109dc5.zip |
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>
-rw-r--r-- | package/Makefile.in | 2 |
1 files changed, 2 insertions, 0 deletions
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 |