From 3096f34d27f32fc179ca051ad78ac9ee2165c72e Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 1 Jun 2007 22:16:28 +0000 Subject: - add BR2_PREFER_STATIC_LIB config option to be able to select if we prefer to build static or dynamic libs/bins. - depending on the BR2_GNU_BUILD_SUFFIX, set the respective EXEEXT, LIBEXT, SHREXT extensions for use on the target. Thanks to Tom for suplying a diff which implements these. --- toolchain/Makefile.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'toolchain/Makefile.in') diff --git a/toolchain/Makefile.in b/toolchain/Makefile.in index ca798bf6b..6f7cc013d 100644 --- a/toolchain/Makefile.in +++ b/toolchain/Makefile.in @@ -10,6 +10,12 @@ else MULTILIB:=--disable-multilib endif +ifeq ($(BR2_PREFER_STATIC_LIB),y) +PREFERRED_LIB_FLAGS:=--enable-static --disable-shared +else +PREFERRED_LIB_FLAGS:=--disable-static --enable-shared +endif + # FIXME -- this is temporary OPTIMIZE_FOR_CPU=$(ARCH) -- cgit v1.2.3