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-20 14:00:54 +02:00
|
|
|
ifeq ($(BR2_ENABLE_OPENMP),y)
|
|
|
|
OPENMP:=--enable-openmp
|
|
|
|
else
|
|
|
|
OPENMP:=--disable-openmp
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
2007-06-20 13:26:36 +02:00
|
|
|
ifeq ($(BR2_TOOLCHAIN_SYSROOT),y)
|
|
|
|
BR2_SYSROOT_PREFIX=# nothing, straight into /usr
|
|
|
|
BR2_SYSROOT_STAGING_DESTDIR=DESTDIR=$(STAGING_DIR)/
|
|
|
|
BR2_SYSROOT_TARGET_DESTDIR=DESTDIR=$(TARGET_DIR)/
|
|
|
|
BR2_CONFIGURE_DEVEL_SYSROOT=--with-sysroot=$(TOOL_BUILD_DIR)/uClibc_dev/
|
|
|
|
BR2_CONFIGURE_STAGING_SYSROOT=--with-sysroot=$(STAGING_DIR)
|
|
|
|
BR2_CONFIGURE_BUILD_TOOLS=--with-build-time-tools=$(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/bin
|
|
|
|
BR2_SYSROOT=--sysroot=$(STAGING_DIR)/
|
|
|
|
BR2_ISYSROOT=-isysroot $(STAGING_DIR)
|
2007-06-02 00:16:28 +02:00
|
|
|
else
|
2007-06-20 13:26:36 +02:00
|
|
|
BR2_SYSROOT_PREFIX=$(STAGING_DIR)
|
|
|
|
BR2_SYSROOT_STAGING_DESTDIR=# nothing
|
|
|
|
BR2_SYSROOT_TARGET_DESTDIR=# nothing
|
|
|
|
BR2_CONFIGURE_DEVEL_SYSROOT=--with-sysroot=$(TOOL_BUILD_DIR)/uClibc_dev/
|
|
|
|
BR2_CONFIGURE_STAGING_SYSROOT=# nothing
|
|
|
|
BR2_CONFIGURE_BUILD_TOOLS=# nothing
|
|
|
|
BR2_SYSROOT=# nothing
|
|
|
|
BR2_ISYSROOT=#nothing
|
2007-06-02 00:16:28 +02:00
|
|
|
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
|