Merge branch 'qtopia-fixes' of git://git.busybox.net/~tpetazzoni/git/buildroot
[avatt.git] / toolchain / Makefile.in
blobd312b564283fc110c568dd21f7a771a8f1c11c50
1 ifeq ($(BR2_PTHREADS_NONE),y)
2 THREADS:=--disable-threads
3 else
4 THREADS:=--enable-threads
5 endif
7 ifeq ($(BR2_ENABLE_MULTILIB),y)
8 MULTILIB:=--enable-multilib
9 else
10 MULTILIB:=--disable-multilib
11 endif
13 ifeq ($(BR2_ENABLE_OPENMP),y)
14 OPENMP:=--enable-openmp
15 else
16 OPENMP:=--disable-openmp
17 endif
20 ifeq ($(BR2_TOOLCHAIN_SYSROOT),y)
21 BR2_SYSROOT_PREFIX=# nothing, straight into /usr
22 BR2_SYSROOT_STAGING_DESTDIR=DESTDIR=$(STAGING_DIR)/
23 BR2_SYSROOT_TARGET_DESTDIR=DESTDIR=$(TARGET_DIR)/
24 BR2_CONFIGURE_DEVEL_SYSROOT=--with-sysroot=$(TOOL_BUILD_DIR)/uClibc_dev/
25 BR2_CONFIGURE_STAGING_SYSROOT=--with-sysroot=$(STAGING_DIR)
26 BR2_CONFIGURE_BUILD_TOOLS=--with-build-time-tools=$(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/bin
27 BR2_SYSROOT=--sysroot=$(STAGING_DIR)/
28 BR2_ISYSROOT=-isysroot $(STAGING_DIR)
29 else
30 BR2_SYSROOT_PREFIX=$(STAGING_DIR)
31 BR2_SYSROOT_STAGING_DESTDIR=# nothing
32 BR2_SYSROOT_TARGET_DESTDIR=# nothing
33 BR2_CONFIGURE_DEVEL_SYSROOT=--with-sysroot=$(TOOL_BUILD_DIR)/uClibc_dev/
34 BR2_CONFIGURE_STAGING_SYSROOT=# nothing
35 BR2_CONFIGURE_BUILD_TOOLS=# nothing
36 BR2_SYSROOT=# nothing
37 BR2_ISYSROOT=#nothing
38 endif
40 # FIXME -- this is temporary
41 OPTIMIZE_FOR_CPU=$(ARCH)
43 # late binding check to see if the target cc supports -fwhole-program
44 CFLAGS_WHOLE_PROGRAM = $(call cc-option,-fwhole-program,)
45 CFLAGS_COMBINE = $(call cc-option,-combine,)
47 # gcc has a bunch of needed stuff....
48 include toolchain/gcc/Makefile.in