# HG changeset patch # User "Yann E. MORIN" # Date 1313186751 -7200 # Node ID fac4018427d2920607e8f924672458be1b366551 # Parent c096c896e74588435e863957d865f3f84dd001f1 libc/uClibc: force use of ctor/dtor Although ctor/dtor do not seem strictly required, missing them proves rather inconvenient, as ld can't link binaries. Reported-by: John Spencer (sh4rm4 on IRC) Signed-off-by: "Yann E. MORIN" diff -r c096c896e745 -r fac4018427d2 scripts/build/libc/uClibc.sh --- a/scripts/build/libc/uClibc.sh Wed Aug 10 23:09:06 2011 +0200 +++ b/scripts/build/libc/uClibc.sh Sat Aug 13 00:05:51 2011 +0200 @@ -365,6 +365,11 @@ ;; esac + # We always want ctor/dtor + cat <<-ENDSED + s/^# (UCLIBC_CTOR_DTOR) is not set/\\1=y/ + ENDSED + # Change paths to work with crosstool-NG # From http://www.uclibc.org/cgi-bin/viewcvs.cgi?rev=16846&view=rev # " we just want the kernel headers, not the whole kernel source ... @@ -443,7 +448,6 @@ if [ "${CT_CC_LANG_CXX}" = "y" ]; then cat <<-ENDSED s/^# DO_C99_MATH is not set/DO_C99_MATH=y/ - s/^# UCLIBC_CTOR_DTOR is not set/UCLIBC_CTOR_DTOR=y/ s/^# UCLIBC_HAS_GNU_GETOPT is not set/UCLIBC_HAS_GNU_GETOPT=y/ ENDSED fi