Merge branch 'master' of git://repo.or.cz/buildroot
[buildroot.git] / toolchain / Makefile.in
blobd637ca188bc3c4b7a9cb84af51d721f5e44fd753
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
19 ifeq ($(BR2_ENABLE_LOCALE),y)
20 DISABLE_NLS:=
21 else
22 DISABLE_NLS:=--disable-nls
23 endif
25 ifneq ($(BR2_LARGEFILE),y)
26 DISABLE_LARGEFILE= --disable-largefile
27 endif
29 ifneq ($(BR2_INET_IPV6),y)
30 DISABLE_IPV6= --disable-ipv6
31 endif
33 ifeq ($(BR2_GCC_USE_INTERWORKING),y)
34 BR2_MAYBE_USE_INTERWORKING+=--enable-interwork
35 endif
38 ifeq ($(BR2_TOOLCHAIN_SYSROOT),y)
39 BR2_SYSROOT_PREFIX=# nothing, straight into /usr
40 BR2_SYSROOT_STAGING_DESTDIR=DESTDIR=$(STAGING_DIR)/
41 BR2_SYSROOT_TARGET_DESTDIR=DESTDIR=$(TARGET_DIR)/
42 BR2_CONFIGURE_DEVEL_SYSROOT=--with-sysroot=$(TOOL_BUILD_DIR)/uClibc_dev/
43 BR2_CONFIGURE_STAGING_SYSROOT=--with-sysroot=$(STAGING_DIR)
44 BR2_CONFIGURE_BUILD_TOOLS=--with-build-time-tools=$(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/bin
45 BR2_SYSROOT=--sysroot=$(STAGING_DIR)/
46 BR2_ISYSROOT=-isysroot $(STAGING_DIR)
47 else
48 BR2_SYSROOT_PREFIX=$(STAGING_DIR)
49 BR2_SYSROOT_STAGING_DESTDIR=# nothing
50 BR2_SYSROOT_TARGET_DESTDIR=# nothing
51 BR2_CONFIGURE_DEVEL_SYSROOT=--with-sysroot=$(TOOL_BUILD_DIR)/uClibc_dev/
52 BR2_CONFIGURE_STAGING_SYSROOT=# nothing
53 BR2_CONFIGURE_BUILD_TOOLS=# nothing
54 BR2_SYSROOT=# nothing
55 BR2_ISYSROOT=#nothing
56 endif
58 # FIXME -- this is temporary
59 OPTIMIZE_FOR_CPU=$(ARCH)
61 # late binding check to see if the target cc supports -fwhole-program
62 CFLAGS_WHOLE_PROGRAM = $(call cc-option,-fwhole-program,)
63 CFLAGS_COMBINE = $(call cc-option,-combine,)
65 # gcc has a bunch of needed stuff....
66 include toolchain/gcc/Makefile.in