bump version
[buildroot.git] / toolchain / Makefile.in
blob9a91e004ea5e74ffe7bab0ae5c47d0a60503259e
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 ifeq ($(BR2_ENABLE_SELINUX),y)
30 DISABLE_SELINUX:=
31 else
32 DISABLE_SELINUX:=--disable-selinux
33 endif
36 ifneq ($(BR2_INET_IPV6),y)
37 DISABLE_IPV6= --disable-ipv6
38 endif
40 ifeq ($(BR2_GCC_USE_INTERWORKING),y)
41 BR2_MAYBE_USE_INTERWORKING+=--enable-interwork
42 endif
45 ifeq ($(BR2_TOOLCHAIN_SYSROOT),y)
46 BR2_SYSROOT_PREFIX=# nothing, straight into /usr
47 BR2_SYSROOT_STAGING_DESTDIR=DESTDIR=$(STAGING_DIR)/
48 BR2_SYSROOT_TARGET_DESTDIR=DESTDIR=$(TARGET_DIR)/
49 BR2_CONFIGURE_DEVEL_SYSROOT=--with-sysroot=$(TOOL_BUILD_DIR)/uClibc_dev/
50 BR2_CONFIGURE_STAGING_SYSROOT=--with-sysroot=$(STAGING_DIR)
51 BR2_CONFIGURE_BUILD_TOOLS=--with-build-time-tools=$(STAGING_DIR)/usr/$(REAL_GNU_TARGET_NAME)/bin
52 BR2_SYSROOT=--sysroot=$(STAGING_DIR)/
53 BR2_ISYSROOT=-isysroot $(STAGING_DIR)
54 else
55 BR2_SYSROOT_PREFIX=$(STAGING_DIR)
56 BR2_SYSROOT_STAGING_DESTDIR=# nothing
57 BR2_SYSROOT_TARGET_DESTDIR=# nothing
58 BR2_CONFIGURE_DEVEL_SYSROOT=--with-sysroot=$(TOOL_BUILD_DIR)/uClibc_dev/
59 BR2_CONFIGURE_STAGING_SYSROOT=# nothing
60 BR2_CONFIGURE_BUILD_TOOLS=# nothing
61 BR2_SYSROOT=# nothing
62 BR2_ISYSROOT=#nothing
63 endif
65 # FIXME -- this is temporary
66 OPTIMIZE_FOR_CPU=$(ARCH)
68 # late binding check to see if the target cc supports -fwhole-program
69 CFLAGS_WHOLE_PROGRAM = $(call cc-option,-fwhole-program,)
70 CFLAGS_COMBINE = $(call cc-option,-combine,)
72 # gcc has a bunch of needed stuff....
73 include toolchain/gcc/Makefile.in