buildrootschalter/toolchain/Makefile.in
Bernhard Reutner-Fischer 3096f34d27 - 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.
2007-06-01 22:16:28 +00:00

30 lines
730 B
Makefile

ifeq ($(BR2_PTHREADS_NONE),y)
THREADS:=--disable-threads
else
THREADS:=--enable-threads
endif
ifeq ($(BR2_ENABLE_MULTILIB),y)
MULTILIB:=--enable-multilib
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)
# late binding check to see if the target cc supports -fwhole-program
CFLAGS_WHOLE_PROGRAM = $(call cc-option,-fwhole-program,)
# gcc-3.4 would need -combine, I only support 4.2, which correctly uses '--'
CFLAGS_COMBINE = $(call cc-option,--combine,)
# gcc has a bunch of needed stuff....
include toolchain/gcc/Makefile.in