2006-04-15 00:37:50 +02:00
|
|
|
ifeq ($(BR2_PTHREADS_NONE),y)
|
2005-10-01 02:36:38 +02:00
|
|
|
THREADS:=--disable-threads
|
2006-04-15 00:37:50 +02:00
|
|
|
else
|
|
|
|
THREADS:=--enable-threads
|
2005-10-01 02:36:38 +02:00
|
|
|
endif
|
|
|
|
|
2004-10-09 03:06:03 +02:00
|
|
|
ifeq ($(BR2_ENABLE_MULTILIB),y)
|
|
|
|
MULTILIB:=--enable-multilib
|
2005-09-22 05:05:52 +02:00
|
|
|
else
|
|
|
|
MULTILIB:=--disable-multilib
|
2004-10-09 03:06:03 +02:00
|
|
|
endif
|
|
|
|
|
2007-06-02 00:16:28 +02:00
|
|
|
ifeq ($(BR2_PREFER_STATIC_LIB),y)
|
|
|
|
PREFERRED_LIB_FLAGS:=--enable-static --disable-shared
|
|
|
|
else
|
|
|
|
PREFERRED_LIB_FLAGS:=--disable-static --enable-shared
|
|
|
|
endif
|
|
|
|
|
2004-10-09 03:06:03 +02:00
|
|
|
|
|
|
|
# FIXME -- this is temporary
|
|
|
|
OPTIMIZE_FOR_CPU=$(ARCH)
|
2005-02-10 04:06:39 +01:00
|
|
|
|
2007-02-12 14:38:06 +01:00
|
|
|
# late binding check to see if the target cc supports -fwhole-program
|
|
|
|
CFLAGS_WHOLE_PROGRAM = $(call cc-option,-fwhole-program,)
|
2007-03-21 11:55:02 +01:00
|
|
|
# gcc-3.4 would need -combine, I only support 4.2, which correctly uses '--'
|
|
|
|
CFLAGS_COMBINE = $(call cc-option,--combine,)
|
2007-02-12 14:38:06 +01:00
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
# gcc has a bunch of needed stuff....
|
|
|
|
include toolchain/gcc/Makefile.in
|