view sources/baseconfig-uClibc @ 1532:a2e491cd0800

Fix source/target confusion that bites Fedora host = target builds. The gcc build exports an LD_LIBRARY_PATH full of target libraries and then calls /bin/sh in the configure stage. If you configure before building, this doesn't cause a problem because the libraries aren't there yet, but c++ has dependencies that trigger a C build before running configuration even if you reorder the steps. On ubuntu this doesn't cause a problem because /bin/sh doesn't link against anything in this LD_LIBRARY PATH, and when building a different architecture the foreign binaries are ignored by the dynamic linker. But on Fedora when host == target /bin/sh links against libgcc_s.so.1 which is in LD_LIBRARY_PATH linked against libc.so.0 which isn't installed on the host, and the attempt to run the shell dies saying it can't find uClibc. The fix is to override the make variable SHELL = sh so it calls ash out of build/host.
author Rob Landley <rob@landley.net>
date Thu, 16 Aug 2012 21:59:27 -0500
parents 2d589ed56a1d
children 2d264744ac3a
line wrap: on
line source

# Common configuration for uClibc.

# This is a miniconfig (created by running sources/toys/miniconfig.sh on
# a full .config file), to which target-specific entries in $UCLIBC_CONFIG
# (from the target's settings file) are appended.

# Obsolete symbols 0.9.30 needs

#UCLIBC_HAS_THREADS=y
#UCLIBC_HAS_REALTIME=y
#UCLIBC_HAS_GLIBC_CUSTOM_PRINTF=y

# Obsolete symbols for 0.9.31

ARCH_HAS_MMU=y
#LINUXTHREADS_OLD=y

# Baseconfig for 0.9.31

ARCH_USE_MMU=y
UCLIBC_HAS_FLOATS=y
DO_C99_MATH=y
UCLIBC_HAS_FENV=y
HAVE_SHARED=y
LDSO_CACHE_SUPPORT=y
LDSO_BASE_FILENAME="ld-uClibc.so"
UCLIBC_STATIC_LDCONFIG=y
LDSO_RUNPATH=y
LDSO_SEARCH_INTERP_PATH=y
LDSO_LD_LIBRARY_PATH=y
UCLIBC_CTOR_DTOR=y
UCLIBC_HAS_THREADS_NATIVE=y
UCLIBC_HAS_SYSLOG=y
UCLIBC_HAS_LFS=y
MALLOC_GLIBC_COMPAT=y
UCLIBC_DYNAMIC_ATEXIT=y
UCLIBC_SUSV3_LEGACY=y
UCLIBC_SUSV3_LEG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
UCLIBC_HAS_SIGNUM_MESSAGES=y
UCLIBC_HAS_GNU_GETOPT=y
UCLIBC_HAS_GNU_GETSUBOPT=y
UCLIBC_HAS_REGEX=y
UCLIBC_HAS_REGEX_OLD=y
UCLIBC_HAS_FNMATCH=y
UCLIBC_HAS_FNMATCH_OLD=y
UCLIBC_HAS_GLOB=y
UCLIBC_HAS_GNU_GLOB=y
UCLIBC_BUILD_RELRO=y
UCLIBC_BUILD_NOEXECSTACK=y
UCLIBC_HAS_LIBNSL_STUB=y
UCLIBC_HAS_UTMPX=y
UCLIBC_LINUX_MODULE_26=y

# Optional internationalization stuff

#UCLIBC_HAS_LOCALE=y
#UCLIBC_HAS_XLOCALE=y
#UCLIBC_BUILD_MINIMAL_LOCALE=y