mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-07 03:19:14 +00:00
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 <maillist-uclibc@barfooze.de> (sh4rm4 on IRC) Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> (transplanted from fac4018427d2920607e8f924672458be1b366551)
This commit is contained in:
parent
cc415201db
commit
ead6c9b861
@ -365,6 +365,11 @@ mungeuClibcConfig() {
|
|||||||
;;
|
;;
|
||||||
esac
|
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
|
# Change paths to work with crosstool-NG
|
||||||
# From http://www.uclibc.org/cgi-bin/viewcvs.cgi?rev=16846&view=rev
|
# From http://www.uclibc.org/cgi-bin/viewcvs.cgi?rev=16846&view=rev
|
||||||
# " we just want the kernel headers, not the whole kernel source ...
|
# " we just want the kernel headers, not the whole kernel source ...
|
||||||
@ -443,7 +448,6 @@ mungeuClibcConfig() {
|
|||||||
if [ "${CT_CC_LANG_CXX}" = "y" ]; then
|
if [ "${CT_CC_LANG_CXX}" = "y" ]; then
|
||||||
cat <<-ENDSED
|
cat <<-ENDSED
|
||||||
s/^# DO_C99_MATH is not set/DO_C99_MATH=y/
|
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/
|
s/^# UCLIBC_HAS_GNU_GETOPT is not set/UCLIBC_HAS_GNU_GETOPT=y/
|
||||||
ENDSED
|
ENDSED
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user