pass ARCH down to uClibc
[buildroot.git] / package / Makefile.in
blob7c5c1412478986b556af3af391cbe31a2ba986e4
1 ifndef MAKE
2 MAKE:=make
3 endif
4 ifndef HOSTMAKE
5 HOSTMAKE=$(MAKE)
6 endif
7 HOSTMAKE:=$(shell $(CONFIG_SHELL) -c "which $(HOSTMAKE)" || type -p $(HOSTMAKE) || echo make)
9 MAKE1:=$(HOSTMAKE) MAKE="$(firstword $(HOSTMAKE)) -j1"
10 MAKE:=$(HOSTMAKE) -j$(BR2_JLEVEL)
12 # installation targets
13 ifeq ($(BR2_HAVE_INFOPAGES),y)
14 MAKE_INSTALL_INFO:=install-info
15 endif
16 ifeq ($(BR2_HAVE_MANPAGES),y)
17 MAKE_INSTALL_MAN:=install-man
18 endif
21 #########################################################################
22 ifeq ($(BR2_TOOLCHAIN_SOURCE),y)
23 TARGET_CFLAGS=
24 TARGET_LDFLAGS=
25 # flags that are inherent part of the tool
26 TARGET_CC_FLAGS=
27 TARGET_LD_FLAGS=
29 ifeq ($(BR2_TOOLCHAIN_SYSROOT),y)
30 TARGET_CC_FLAGS+= $(BR2_SYSROOT) $(BR2_ISYSROOT) -I=/usr/include
31 TARGET_LD_FLAGS+= $(BR2_SYSROOT)
32 else
33 # for old gcc's, as fallback
34 TARGET_CC_FLAGS+= -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
35 endif
36 ifeq ($(BR2_ENABLE_MULTILIB),y)
37 TARGET_LD_FLAGS+= -L$(STAGING_DIR)/lib64 -L$(STAGING_DIR)/usr/lib64
38 endif
39 TARGET_LD_FLAGS+= -L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib
40 TARGET_CFLAGS += $(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING)
42 ifeq ($(BR2_bfin),y)
43 CC_TARGET_CPU_SUB_:=$(strip $(subst ",,$(BR2_bfin_sirevision)))
44 #"))
45 CC_TARGET_CPU_SUB_:=$(if $(CC_TARGET_CPU_SUB_),-$(CC_TARGET_CPU_SUB_))
46 endif
48 ##############################################################################
49 #disabled
50 ifneq (XXX,XXX)
51 # gcc configury --with-foo
52 CC_TARGET_CPU_:=$(strip $(subst ",,$(BR2_GCC_TARGET_CPU)))
53 #"))
54 CC_TARGET_TUNE_:=$(strip $(subst ",,$(BR2_GCC_TARGET_TUNE)))
55 #"))
56 CC_TARGET_ARCH_:=$(strip $(subst ",,$(BR2_GCC_TARGET_ARCH)))
57 #"))
58 CC_TARGET_ABI_:=$(strip $(subst ",,$(BR2_GCC_TARGET_ABI)))
59 #"))
61 # fixup for MOTOROLA
62 ifeq ($(BR2_m68k),y)
63 CC_TARGET_ARCH_:=$(filter-out cf m68k,$(CC_TARGET_ARCH_))
64 endif
66 ifneq ($(strip $(CC_TARGET_CPU_)),)
67 TARGET_CFLAGS+=-mcpu=$(CC_TARGET_CPU_)$(CC_TARGET_CPU_SUB_)
68 endif
69 ifneq ($(strip $(CC_TARGET_TUNE_)),)
70 TARGET_CFLAGS+=-mtune=$(CC_TARGET_TUNE_)
71 endif
72 ifneq ($(strip $(CC_TARGET_ARCH_)),)
73 TARGET_CFLAGS+=-march=$(CC_TARGET_ARCH_)
74 endif
75 ifneq ($(strip $(CC_TARGET_ABI_)),)
76 TARGET_CFLAGS+=-mabi=$(CC_TARGET_ABI_)
77 endif
79 endif
80 ##############################################################################
83 # CC -m{cpu,tune,arch,abi} FLAGS
84 CC_TARGET_FLAGS_CPU_:=$(strip $(subst ",,$(BR2_GCC_TARGET_FLAGS_CPU)))
85 #"))
86 CC_TARGET_FLAGS_SUBCPU_:=$(strip $(subst ",,$(BR2_GCC_TARGET_FLAGS_SUBCPU)))
87 #"))
88 CC_TARGET_FLAGS_TUNE_:=$(strip $(subst ",,$(BR2_GCC_TARGET_FLAGS_TUNE)))
89 #"))
90 CC_TARGET_FLAGS_ARCH_:=$(strip $(subst ",,$(BR2_GCC_TARGET_FLAGS_ARCH)))
91 #"))
92 CC_TARGET_FLAGS_ABI_:=$(strip $(subst ",,$(BR2_GCC_TARGET_FLAGS_ABI)))
93 #"))
94 ifneq ($(strip $(CC_TARGET_FLAGS_CPU_)),)
95 ifeq ($(BR2_bfin),y)
96 CC_TARGET_FLAGS_SUBCPU_SEPARATOR:=-
97 endif
98 TARGET_CFLAGS+=-mcpu=$(CC_TARGET_FLAGS_CPU_)$(if CC_TARGET_FLAGS_SUBCPU_,$(CC_TARGET_FLAGS_SUBCPU_SEPARATOR)$(CC_TARGET_FLAGS_SUBCPU_))
99 endif
100 ifneq ($(strip $(CC_TARGET_FLAGS_TUNE_)),)
101 TARGET_CFLAGS+=-mtune=$(CC_TARGET_FLAGS_TUNE_)
102 endif
103 ifneq ($(strip $(CC_TARGET_FLAGS_ARCH_)),)
104 TARGET_CFLAGS+=-march=$(CC_TARGET_FLAGS_ARCH_)
105 endif
106 ifneq ($(strip $(CC_TARGET_FLAGS_ABI_)),)
107 TARGET_CFLAGS+=-mabi=$(CC_TARGET_FLAGS_ABI_)
108 endif
111 ifneq ($(BR2_PREFER_STATIC_LIB),y)
112 ifeq ($(BR2_x86_64),y)
113 TARGET_CFLAGS+=-fPIC -DPIC
114 endif # PIC for dynamic objects on x86_64
115 endif
117 ifeq ($(BR2_SOFT_FLOAT),y)
118 TARGET_CFLAGS+=-msoft-float
119 endif
121 ifeq ($(BR2_THUMB_BINARIES),y)
122 TARGET_CFLAGS+=-mthumb
123 endif
125 # enable VIS for v9a and v9b
126 ifeq ($(findstring y,$(BR2_sparc_v9a)$(BR2_sparc64_v9a)$(BR2_sparc_v9b)$(BR2_sparc64_v9b)),y)
127 TARGET_CFLAGS+=-mvis
128 endif
130 ifeq ($(findstring yy,$(BR2_mips)$(BR2_MIPS_ABI64)),yy)
131 TARGET_CFLAGS+=-fno-pic -mno-abicalls
132 endif
134 TARGET_CXXFLAGS=$(TARGET_CFLAGS)
135 TARGET_GCJFLAGS=$(TARGET_CFLAGS)
136 TARGET_FFLAGS=$(TARGET_CFLAGS)
137 TARGET_FCFLAGS=$(TARGET_CFLAGS)
138 TARGET_F77FLAGS=$(TARGET_CFLAGS)
139 TARGET_FC_FLAGS=$(TARGET_CC_FLAGS)
141 # else it's an external toolchain
142 #########################################################################
143 else
144 TARGET_CC_FLAGS=-I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include -I$(TOOLCHAIN_EXTERNAL_PATH)/$(TOOLCHAIN_EXTERNAL_PREFIX)/include
145 TARGET_CFLAGS=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING)
146 TARGET_CXXFLAGS=$(TARGET_CFLAGS)
147 TARGET_LD_FLAGS=-L$(STAGING_DIR)/lib -L$(STAGING_DIR)/usr/lib
148 endif
149 #########################################################################
151 ifeq ($(BR2_ENABLE_SSP),y)
152 TARGET_CFLAGS+=-fstack-protector -fstack-protector-all -Wstack-protector
153 endif
155 ifeq ($(BR2_TOOLCHAIN_SOURCE),y)
156 TOOL_BUILD_DIR=$(BASE_DIR)/$(TOPDIR_PREFIX)$(ARCH)$(ARCH_FPU_SUFFIX)$(ARCH_MMU_SUFFIX)$(TOPDIR_SUFFIX)_toolchain
158 # Quotes are needed for spaces et al in path components.
159 TARGET_PATH="$(TOOL_BUILD_DIR)/bin:$(STAGING_DIR)/bin:$(STAGING_DIR)/usr/bin:$(PATH)"
160 IMAGE:=$(BINARIES_DIR)/rootfs.$(ARCH)$(ARCH_FPU_SUFFIX)$(ARCH_MMU_SUFFIX)
161 GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux
162 REAL_GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)$(GNU_TARGET_SUFFIX)
163 TARGET_CROSS=$(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-
164 KERNEL_CROSS=$(TARGET_CROSS)
165 else
166 TOOLCHAIN_EXTERNAL_PREFIX:=$(strip $(subst ",, $(BR2_TOOLCHAIN_EXTERNAL_PREFIX)))
167 #"))
168 TOOLCHAIN_EXTERNAL_PATH:=$(strip $(subst ",, $(BR2_TOOLCHAIN_EXTERNAL_PATH)))
169 #"))
170 TOOL_BUILD_DIR=$(BASE_DIR)/$(TOPDIR_PREFIX)$(TOOLCHAIN_EXTERNAL_PREFIX)_toolchain
171 TARGET_PATH="$(STAGING_DIR)/bin:$(TOOL_BUILD_DIR)/bin:$(TOOLCHAIN_EXTERNAL_PATH)/bin:$(PATH)"
172 IMAGE:=$(BINARIES_DIR)/rootfs.$(TOOLCHAIN_EXTERNAL_PREFIX)-$(DATE)
174 REAL_GNU_TARGET_NAME=$(TOOLCHAIN_EXTERNAL_PREFIX)
175 GNU_TARGET_NAME=$(TOOLCHAIN_EXTERNAL_PREFIX)
176 KERNEL_CROSS=$(TOOLCHAIN_EXTERNAL_PATH)/bin/$(TOOLCHAIN_EXTERNAL_PREFIX)-
177 TARGET_CROSS=$(TOOLCHAIN_EXTERNAL_PATH)/bin/$(TOOLCHAIN_EXTERNAL_PREFIX)-
178 endif
179 TARGET_AR=$(TARGET_CROSS)ar
180 TARGET_AS=$(TARGET_CROSS)as
181 TARGET_CC=$(TARGET_CROSS)gcc
182 TARGET_CPP=$(TARGET_CROSS)cpp
183 TARGET_CXX=$(TARGET_CROSS)g++
184 TARGET_GCJ=$(TARGET_CROSS)gcj
185 ifeq ($(BR2_GCC_VERSION_3_4_6),y)
186 TARGET_FC=$(TARGET_CROSS)g77
187 else
188 TARGET_FC=$(TARGET_CROSS)gfortran
189 endif
190 TARGET_LD=$(TARGET_CROSS)ld
191 TARGET_NM=$(TARGET_CROSS)nm
192 TARGET_RANLIB=$(TARGET_CROSS)ranlib
193 TARGET_OBJCOPY=$(TARGET_CROSS)objcopy
194 TARGET_OBJDUMP=$(TARGET_CROSS)objdump
195 TARGET_LDCONFIG=$(TARGET_CROSS)ldconfig
196 ifeq ($(BR2_STRIP_strip),y)
197 STRIP_DISCARD_ALL:=--discard-all
198 STRIP_STRIP_UNNEEDED:=--strip-unneeded
199 STRIP_STRIP_ALL:=--strip-all
200 REMOVE_SECTION_COMMENT:=--remove-section=.comment
201 REMOVE_SECTION_NOTE:=--remove-section=.note
202 TARGET_STRIP=$(TARGET_CROSS)strip
203 STRIPCMD=$(TARGET_CROSS)strip $(REMOVE_SECTION_COMMENT) $(REMOVE_SECTION_NOTE)
204 endif
205 ifeq ($(BR2_STRIP_sstrip),y)
206 STRIP_DISCARD_ALL:=
207 STRIP_STRIP_UNNEEDED:=
208 STRIP_STRIP_ALL:=
209 REMOVE_SECTION_COMMENT:=
210 REMOVE_SECTION_NOTE:=
211 TARGET_STRIP=$(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-sstrip
212 STRIPCMD=$(TARGET_STRIP)
213 endif
214 ifeq ($(BR2_STRIP_none),y)
215 TARGET_STRIP=true -Not_stripping
216 STRIPCMD=$(TARGET_STRIP)
217 endif
218 INSTALL=/usr/bin/install
219 FLEX:=$(shell $(CONFIG_SHELL) -c 'which flex || type -p flex')
220 BISON:=$(shell $(CONFIG_SHELL) -c 'which bison || type -p bison')
222 HOST_ARCH:=$(shell $(HOSTCC) -dumpmachine | sed -e s'/-.*//' \
223 -e 's/sparc.*/sparc/' \
224 -e 's/arm.*/arm/g' \
225 -e 's/m68k.*/m68k/' \
226 -e 's/ppc/powerpc/g' \
227 -e 's/v850.*/v850/g' \
228 -e 's/sh[234]/sh/' \
229 -e 's/mips-.*/mips/' \
230 -e 's/mipsel-.*/mipsel/' \
231 -e 's/cris.*/cris/' \
232 -e 's/i[3-9]86/i386/' \
234 GNU_HOST_NAME:=$(HOST_ARCH)-$(subst ",,$(BR2_GNU_BUILD_SUFFIX))
237 AUTO_CONFIGURE_TARGET=\
238 $(TARGET_CONFIGURE_OPTS) \
239 $(TARGET_CONFIGURE_ARGS) \
240 $(TARGET_CONFIGURE_ENV) \
241 $(if $(THIS_SRCDIR),$(THIS_SRCDIR)/,./)configure \
242 --cache-file="$(PROJECT_BUILD_DIR)/tgt-config.cache" \
243 --target=$(REAL_GNU_TARGET_NAME) \
244 --host=$(REAL_GNU_TARGET_NAME) \
245 --build=$(GNU_HOST_NAME)
247 TARGET_CONFIGURE_OPTS=\
248 PATH=$(TARGET_PATH) \
249 AR="$(TARGET_AR)" \
250 AS="$(TARGET_AS)" \
251 LD="$(TARGET_LD)$(if $(TARGET_LD_FLAGS), $(TARGET_LD_FLAGS))" \
252 NM="$(TARGET_NM)" \
253 CC="$(TARGET_CC)$(if $(TARGET_CC_FLAGS), $(TARGET_CC_FLAGS))" \
254 GCC="$(TARGET_CC)$(if $(TARGET_CC_FLAGS), $(TARGET_CC_FLAGS))" \
255 CPP="$(TARGET_CPP)$(if $(TARGET_CC_FLAGS), $(TARGET_CC_FLAGS))" \
256 CXX="$(if $(BR2_GCC_CROSS_CXX),$(TARGET_CXX)$(if $(TARGET_CXXFLAGS), $(TARGET_CXXFLAGS)))" \
257 GCJ="$(if $(BR2_GCC_CROSS_GCJ),$(TARGET_GCJ)$(if $(TARGET_GCJFLAGS), $(TARGET_GCJFLAGS)))" \
258 FC="$(TARGET_FC)$(if $(TARGET_FC_FLAGS), $(TARGET_FC_FLAGS))" \
259 RANLIB="$(TARGET_RANLIB)" \
260 STRIP="$(TARGET_STRIP)" \
261 OBJCOPY="$(TARGET_OBJCOPY)" \
262 AR_FOR_BUILD="$(HOSTAR)" \
263 AS_FOR_BUILD="$(HOSTAS)" \
264 CC_FOR_BUILD="$(HOSTCC)" \
265 GCC_FOR_BUILD="$(HOSTCC)" \
266 CXX_FOR_BUILD="$(HOSTCXX)" \
267 GCJ_FOR_BUILD="$(HOSTGCJ)" \
268 FC_FOR_BUILD="$(HOSTFC)" \
269 LD_FOR_BUILD="$(HOSTLD)" \
270 CFLAGS_FOR_BUILD="$(HOST_CFLAGS)" \
271 CXXFLAGS_FOR_BUILD="$(HOST_CXXFLAGS)" \
272 LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)" \
273 FCFLAGS_FOR_BUILD="$(HOST_FCFLAGS)" \
274 AR_FOR_TARGET="$(TARGET_AR)" \
275 AS_FOR_TARGET="$(TARGET_AS)" \
276 CC_FOR_TARGET="$(TARGET_CC)" \
277 LD_FOR_TARGET="$(TARGET_LD)" \
278 NM_FOR_TARGET="$(TARGET_NM)" \
279 CXX_FOR_TARGET="$(if $(BR2_GCC_CROSS_CXX),$(TARGET_CXX))" \
280 GCJ_FOR_TARGET="$(if $(BR2_GCC_CROSS_GCJ),$(TARGET_GCJ))" \
281 DEFAULT_ASSEMBLER="$(TARGET_AS)" \
282 DEFAULT_LINKER="$(TARGET_LD)" \
283 LIBTOOL="$(TOOL_BUILD_DIR)/bin/$(LIBTOOL_BINARY)" \
284 LIBTOOLIZE="$(TOOL_BUILD_DIR)/bin/$(LIBTOOL_BINARY)ize" \
285 PKG_CONFIG_SYSROOT="$(STAGING_DIR)" \
286 PKG_CONFIG="$(STAGING_DIR)/usr/bin/pkg-config" \
287 PKG_CONFIG_PATH="$(STAGING_DIR)/usr/lib/pkgconfig:$(PKG_CONFIG_PATH)" \
288 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
289 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 \
290 STAGING_DIR="$(STAGING_DIR)"
292 TARGET_CONFIGURE_ENV:=\
293 CFLAGS="$(TARGET_CFLAGS)" \
294 LDFLAGS="$(TARGET_LDFLAGS)" \
295 CXXFLAGS="$(if $(BR2_GCC_CROSS_CXX),$(TARGET_CXXFLAGS))" \
296 GCJFLAGS="$(if $(BR2_GCC_CROSS_GCJ),$(TARGET_GCJFLAGS))" \
297 FFLAGS="$(TARGET_FFLAGS)" \
298 FCFLAGS="$(TARGET_FCFLAGS)" \
299 F77FLAGS="$(TARGET_F77FLAGS)" \
301 HOST_CONFIGURE_OPTS=\
302 PATH=$(TARGET_PATH) \
303 AR="$(HOSTAR)" \
304 AS="$(HOSTAS)" \
305 LD="$(HOSTLD)$(if $(HOST_LDFLAGS), $(HOST_LDFLAGS))" \
306 NM="$(HOSTNM)" \
307 CC="$(HOSTCC)$(if $(HOST_CFLAGS), $(HOST_CFLAGS))" \
308 GCC="$(HOSTCC)$(if $(HOST_CFLAGS), $(HOST_CFLAGS))" \
309 CXX="$(HOSTCXX)$(if $(HOST_CXXFLAGS), $(HOST_CXXFLAGS))" \
310 GCJ="$(HOSTGCJ)$(if $(HOST_GCJFLAGS), $(HOST_GCJFLAGS))" \
311 CPP="$(HOSTCPP)$(if $(HOST_CFLAGS), $(HOST_CFLAGS))" \
312 AR_FOR_BUILD="$(HOSTAR)" \
313 AS_FOR_BUILD="$(HOSTAS)" \
314 CC_FOR_BUILD="$(HOSTCC)" \
315 GCC_FOR_BUILD="$(HOSTCC)" \
316 CPP_FOR_BUILD="$(HOSTCPP)" \
317 CXX_FOR_BUILD="$(HOSTCXX)" \
318 GCJ_FOR_BUILD="$(HOSTGCJ)" \
319 LD_FOR_BUILD="$(HOSTLD)" \
320 FC_FOR_BUILD="$(HOSTFC)" \
321 CFLAGS_FOR_BUILD="$(HOST_CFLAGS)" \
322 CXXFLAGS_FOR_BUILD="$(HOST_CXXFLAGS)" \
323 LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)" \
324 FCFLAGS_FOR_BUILD="$(HOST_FCFLAGS)" \
325 AR_FOR_TARGET="$(TARGET_AR)" \
326 AS_FOR_TARGET="$(TARGET_AS)" \
327 CC_FOR_TARGET="$(TARGET_CC)" \
328 CPP_FOR_TARGET="$(TARGET_CPP)" \
329 LD_FOR_TARGET="$(TARGET_LD)" \
330 NM_FOR_TARGET="$(TARGET_NM)" \
331 CXX_FOR_TARGET="$(if $(BR2_GCC_CROSS_CXX),$(TARGET_CXX))" \
332 GCJ_FOR_TARGET="$(if $(BR2_GCC_CROSS_GCJ),$(TARGET_GCJ))" \
333 RANLIB_FOR_TARGET="$(TARGET_RANLIB)" \
334 STRIP_FOR_TARGET="$(TARGET_STRIP)" \
335 OBJCOPY_FOR_TARGET="$(TARGET_OBJCOPY)" \
336 OBJDUMP_FOR_TARGET="$(TARGET_OBJDUMP)" \
337 DEFAULT_ASSEMBLER="$(TARGET_AS)" \
338 DEFAULT_LINKER="$(TARGET_LD)" \
339 ORIGINAL_AS_FOR_TARGET="$(TARGET_AS)" \
340 ORIGINAL_LD_FOR_TARGET="$(TARGET_LD)" \
341 ORIGINAL_NM_FOR_TARGET="$(TARGET_NM)" \
342 ORIGINAL_OBJDUMP_FOR_TARGET="$(TARGET_OBJDUMP)"
344 #######################################################################
345 # settings we need to pass to configure
347 # does unaligned access trap?
348 BR2_AC_CV_TRAP_CHECK=ac_cv_lbl_unaligned_fail=yes
349 ifeq ($(BR2_i386),y)
350 BR2_AC_CV_TRAP_CHECK=ac_cv_lbl_unaligned_fail=no
351 endif
352 ifeq ($(BR2_x86_64),y)
353 BR2_AC_CV_TRAP_CHECK=ac_cv_lbl_unaligned_fail=no
354 endif
355 ifeq ($(BR2_m68k),y)
356 BR2_AC_CV_TRAP_CHECK=ac_cv_lbl_unaligned_fail=no
357 endif
358 ifeq ($(BR2_s390),y)
359 BR2_AC_CV_TRAP_CHECK=ac_cv_lbl_unaligned_fail=no
360 endif
361 ifeq ($(BR2_powerpc)$(BR2_ENDIAN),yBIG)
362 BR2_AC_CV_TRAP_CHECK=ac_cv_lbl_unaligned_fail=no
363 endif
365 ifeq ($(BR2_ENDIAN),"BIG")
366 BR2_AC_CV_C_BIGENDIAN=ac_cv_c_bigendian=yes
367 else
368 BR2_AC_CV_C_BIGENDIAN=ac_cv_c_bigendian=no
369 endif
371 # uClibc's config symbols reside in BR2__UCLIBC_${uclibc_config_sym}=${val}
372 # Does malloc return live pointer for malloc(0) ?
374 #ifeq ($(BR2__UCLIBC_MALLOC_GLIBC_COMPAT),y)
375 # just lie
376 ifeq (XXX,XXX)
377 BR2_AC_CV_FUNC_MALLOC_0_NONNULL=ac_cv_func_malloc_0_nonnull=yes \
378 gl_cv_func_malloc_0_nonnull=yes \
379 ac_cv_func_realloc_0_nonnull=yes
380 else
381 BR2_AC_CV_FUNC_MALLOC_0_NONNULL=ac_cv_func_malloc_0_nonnull=no \
382 gl_cv_func_malloc_0_nonnull=no \
383 ac_cv_func_realloc_0_nonnull=no
384 endif
385 ifeq ($(BR2__UCLIBC_UCLIBC_HAS_SYS_ERRLIST),y)
386 BR2_AC_CV_HAVE_DECL_ERRLIST=ac_cv_have_decl_sys_errlist=yes
387 else
388 BR2_AC_CV_HAVE_DECL_ERRLIST=ac_cv_have_decl_sys_errlist=no
389 endif
390 ifeq ($(BR2__UCLIBC_UCLIBC_HAS_SYS_SIGLIST),y)
391 BR2_AC_CV_HAVE_DECL_SIGLIST=ac_cv_have_decl_sys_siglist=yes
392 else
393 BR2_AC_CV_HAVE_DECL_SIGLIST=ac_cv_have_decl_sys_siglist=no
394 endif
395 ifeq ($(BR_LARGEFILE),y)
396 BR2_AC_CV_TYPE_STAT64=ac_cv_type_stat64=yes
397 else
398 BR2_AC_CV_TYPE_STAT64=ac_cv_type_stat64=no
399 endif
401 ifeq ($(findstring y,$(BR2__UCLIBC_UCLIBC_SUSV3_LEGACY)$(BR2__UCLIBC_UCLIBC_SUSV3_LEGACY_MACROS)),y)
402 BR2_AC_CV_SUSV3_LEGACY=
403 endif
405 TARGET_CONFIGURE_ARGS= \
406 $(BR2_AC_CV_TRAP_CHECK) \
407 ac_cv_func_mmap_fixed_mapped=yes \
408 ac_cv_func_memcmp_working=yes \
409 $(BR2_AC_CV_FUNC_MALLOC_0_NONNULL) \
410 $(BR2_AC_CV_HAVE_DECL_ERRLIST) \
411 $(BR2_AC_CV_HAVE_DECL_SIGLIST) \
412 $(BR2_AC_CV_TYPE_STAT64) \
413 ac_cv_type_mode_t=yes \
414 ac_cv_func_getpgrp_void=yes \
415 ac_cv_prog_LEX="$(FLEX)" \
416 ac_cv_prog_YACC="$(BISON) $($(PKG)_BISON_FLAGS)" \
417 $(BR2_AC_CV_C_BIGENDIAN) \
418 $(BR2_AC_CV_SUSV3_LEGACY)
420 #######################################################################
422 #ifneq ($(BR2_GCC_CROSS_CXX),y)
423 #TARGET_CONFIGURE_OPTS+=CXX=""
424 #endif
428 # X Windowing system
430 XSERVER:=
431 ifeq ($(BR2_PACKAGE_TINYX),y)
432 XSERVER+=tinyx
433 endif
434 ifeq ($(BR2_PACKAGE_XORG),y)
435 XSERVER+=xorg
436 endif
437 ifeq ($(BR2_PACKAGE_XORG7),y)
438 XSERVER+=xserver_xorg-server
439 endif
440 ifeq ($(BR2_PACKAGE_XGGI),y)
441 XSERVER+=xggi
442 endif
444 X11_PREFIX:=$(strip $(subst ",,$(BR2_X11_PREFIX)))
445 #"))
447 include package/Makefile.autotools.in