📄 100-uclibc-conf.patch
字号:
++ CLOCALE_H=config/locale/uclibc/c_locale.h+ CLOCALE_CC=config/locale/uclibc/c_locale.cc+ CCODECVT_H=config/locale/uclibc/codecvt_specializations.h+ CCODECVT_CC=config/locale/uclibc/codecvt_members.cc+ CCOLLATE_CC=config/locale/uclibc/collate_members.cc+ CCTYPE_CC=config/locale/uclibc/ctype_members.cc+ CMESSAGES_H=config/locale/uclibc/messages_members.h+ CMESSAGES_CC=config/locale/uclibc/messages_members.cc+ CMONEY_CC=config/locale/uclibc/monetary_members.cc+ CNUMERIC_CC=config/locale/uclibc/numeric_members.cc+ CTIME_H=config/locale/uclibc/time_members.h+ CTIME_CC=config/locale/uclibc/time_members.cc+ CLOCALE_INTERNAL_H=config/locale/uclibc/c++locale_internal.h+ ;; *) echo "$enable_clocale is an unknown locale package" 1>&2 exit 1diff -urN gcc-3.3.3-dist/libstdc++-v3/configure gcc-3.3.3/libstdc++-v3/configure--- gcc-3.3.3-dist/libstdc++-v3/configure 2004-01-12 10:18:45.000000000 -0600+++ gcc-3.3.3/libstdc++-v3/configure 2004-08-12 04:49:13.000000000 -0500@@ -2010,6 +2010,11 @@ lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` ;; +linux-uclibc*)+ lt_cv_deplibs_check_method=pass_all+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`+ ;;+ netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'@@ -2996,6 +3001,9 @@ if test x$enable_clocale_flag = xno; then case x${target_os} in+ xlinux-uclibc*)+ enable_clocale_flag=uclibc+ ;; xlinux* | xgnu*) cat > conftest.$ac_ext <<EOF #line 3002 "configure"@@ -3182,6 +3190,70 @@ CTIME_CC=config/locale/generic/time_members.cc CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h ;;+ xuclibc)+ echo "$ac_t""uclibc" 1>&6++ # Declare intention to use gettext, and add support for specific+ # languages.+ # For some reason, ALL_LINGUAS has to be before AM-GNU-GETTEXT+ ALL_LINGUAS="de fr"++ # Don't call AM-GNU-GETTEXT here. Instead, assume glibc.+ # Extract the first word of "msgfmt", so it can be a program name with args.+set dummy msgfmt; ac_word=$2+echo $ac_n "checking for $ac_word""... $ac_c" 1>&6+echo "configure:3117: checking for $ac_word" >&5+if eval "test \"`echo '$''{'ac_cv_prog_check_msgfmt'+set}'`\" = set"; then+ echo $ac_n "(cached) $ac_c" 1>&6+else+ if test -n "$check_msgfmt"; then+ ac_cv_prog_check_msgfmt="$check_msgfmt" # Let the user override the test.+else+ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"+ ac_dummy="$PATH"+ for ac_dir in $ac_dummy; do+ test -z "$ac_dir" && ac_dir=.+ if test -f $ac_dir/$ac_word; then+ ac_cv_prog_check_msgfmt="yes"+ break+ fi+ done+ IFS="$ac_save_ifs"+ test -z "$ac_cv_prog_check_msgfmt" && ac_cv_prog_check_msgfmt="no"+fi+fi+check_msgfmt="$ac_cv_prog_check_msgfmt"+if test -n "$check_msgfmt"; then+ echo "$ac_t""$check_msgfmt" 1>&6+else+ echo "$ac_t""no" 1>&6+fi++ if test x"$check_msgfmt" = x"yes" && test x"$enable_nls" = x"yes"; then+ USE_NLS=yes+ fi+ # Export the build objects.+ for ling in $ALL_LINGUAS; do \+ glibcpp_MOFILES="$glibcpp_MOFILES $ling.mo"; \+ glibcpp_POFILES="$glibcpp_POFILES $ling.po"; \+ done+ + ++ CLOCALE_H=config/locale/uclibc/c_locale.h+ CLOCALE_CC=config/locale/uclibc/c_locale.cc+ CCODECVT_H=config/locale/uclibc/codecvt_specializations.h+ CCODECVT_CC=config/locale/uclibc/codecvt_members.cc+ CCOLLATE_CC=config/locale/uclibc/collate_members.cc+ CCTYPE_CC=config/locale/uclibc/ctype_members.cc+ CMESSAGES_H=config/locale/uclibc/messages_members.h+ CMESSAGES_CC=config/locale/uclibc/messages_members.cc+ CMONEY_CC=config/locale/uclibc/monetary_members.cc+ CNUMERIC_CC=config/locale/uclibc/numeric_members.cc+ CTIME_H=config/locale/uclibc/time_members.h+ CTIME_CC=config/locale/uclibc/time_members.cc+ CLOCALE_INTERNAL_H=config/locale/uclibc/c++locale_internal.h+ ;; *) echo "$enable_clocale is an unknown locale package" 1>&2 exit 1@@ -4212,6 +4284,968 @@ # GLIBCPP_CHECK_MATH_SUPPORT case "$target" in+ *-uclibc*)+ os_include_dir="os/uclibc"+ for ac_hdr in nan.h ieeefp.h endian.h sys/isa_defs.h \+ machine/endian.h machine/param.h sys/machine.h sys/types.h \+ fp.h locale.h float.h inttypes.h+do+ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`+echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6+echo "configure:4224: checking for $ac_hdr" >&5+if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then+ echo $ac_n "(cached) $ac_c" 1>&6+else+ cat > conftest.$ac_ext <<EOF+#line 4229 "configure"+#include "confdefs.h"+#include <$ac_hdr>+EOF+ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"+{ (eval echo configure:4234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }+ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`+if test -z "$ac_err"; then+ rm -rf conftest*+ eval "ac_cv_header_$ac_safe=yes"+else+ echo "$ac_err" >&5+ echo "configure: failed program was:" >&5+ cat conftest.$ac_ext >&5+ rm -rf conftest*+ eval "ac_cv_header_$ac_safe=no"+fi+rm -f conftest*+fi+if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then+ echo "$ac_t""yes" 1>&6+ ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`+ cat >> confdefs.h <<EOF+#define $ac_tr_hdr 1+EOF+ +else+ echo "$ac_t""no" 1>&6+fi+done++ SECTION_FLAGS='-ffunction-sections -fdata-sections'+ + + # If we're not using GNU ld, then there's no point in even trying these+ # tests. Check for that first. We should have already tested for gld+ # by now (in libtool), but require it now just to be safe...+ test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''+ test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''+ ++ # The name set by libtool depends on the version of libtool. Shame on us+ # for depending on an impl detail, but c'est la vie. Older versions used+ # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on+ # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually+ # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't+ # set (hence we're using an older libtool), then set it.+ if test x${with_gnu_ld+set} != xset; then+ if test x${ac_cv_prog_gnu_ld+set} != xset; then+ # We got through "ac_require(ac_prog_ld)" and still not set? Huh?+ with_gnu_ld=no+ else+ with_gnu_ld=$ac_cv_prog_gnu_ld+ fi+ fi++ # Start by getting the version number. I think the libtool test already+ # does some of this, but throws away the result.+ + ldver=`$LD --version 2>/dev/null | head -1 | \+ sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`+ + glibcpp_gnu_ld_version=`echo $ldver | \+ $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`++ # Set --gc-sections.+ if test "$with_gnu_ld" = "notbroken"; then+ # GNU ld it is! Joy and bunny rabbits!++ # All these tests are for C++; save the language and the compiler flags.+ # Need to do this so that g++ won't try to link in libstdc+++ ac_test_CFLAGS="${CFLAGS+set}"+ ac_save_CFLAGS="$CFLAGS"+ CFLAGS='-x c++ -Wl,--gc-sections'++ # Check for -Wl,--gc-sections+ # XXX This test is broken at the moment, as symbols required for+ # linking are now in libsupc++ (not built yet.....). In addition, + # this test has cored on solaris in the past. In addition,+ # --gc-sections doesn't really work at the moment (keeps on discarding+ # used sections, first .eh_frame and now some of the glibc sections for+ # iconv). Bzzzzt. Thanks for playing, maybe next time.+ echo $ac_n "checking for ld that supports -Wl,--gc-sections""... $ac_c" 1>&6+echo "configure:4312: checking for ld that supports -Wl,--gc-sections" >&5+ if test "$cross_compiling" = yes; then+ ac_sectionLDflags=yes+else+ cat > conftest.$ac_ext <<EOF+#line 4317 "configure"+#include "confdefs.h"++ int main(void) + {+ try { throw 1; }+ catch (...) { };+ return 0;+ }+ +EOF+if { (eval echo configure:4328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null+then+ ac_sectionLDflags=yes+else+ echo "configure: failed program was:" >&5+ cat conftest.$ac_ext >&5+ rm -fr conftest*+ ac_sectionLDflags=no+fi+rm -fr conftest*+fi++ if test "$ac_test_CFLAGS" = set; then+ CFLAGS="$ac_save_CFLAGS"+ else+ # this is the suspicious part+ CFLAGS=''+ fi+ if test "$ac_sectionLDflags" = "yes"; then+ SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"+ fi+ echo "$ac_t""$ac_sectionLDflags" 1>&6+ fi++ # Set linker optimization flags.+ if test x"$with_gnu_ld" = x"yes"; then+ OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"+ fi++ + ++ + echo $ac_n "checking for main in -lm""... $ac_c" 1>&6+echo "configure:4362: checking for main in -lm" >&5+ac_lib_var=`echo m'_'main | sed 'y%./+-%__p_%'`+if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then+ echo $ac_n "(cached) $ac_c" 1>&6+else+ ac_save_LIBS="$LIBS"+LIBS="-lm $LIBS"+cat > conftest.$ac_ext <<EOF+#line 4370 "configure"+#include "confdefs.h"++int main() {+main()+; return 0; }+EOF+if { (eval echo configure:4377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+ rm -rf conftest*+ eval "ac_cv_lib_$ac_lib_var=yes"+else+ echo "configure: failed program was:" >&5+ cat conftest.$ac_ext >&5+ rm -rf conftest*+ eval "ac_cv_lib_$ac_lib_var=no"+fi+rm -f conftest*+LIBS="$ac_save_LIBS"++fi+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then+ echo "$ac_t""yes" 1>&6+ ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \+ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`+ cat >> confdefs.h <<EOF+#define $ac_tr_lib 1+EOF++ LIBS="-lm $LIBS"++else+ echo "$ac_t""no" 1>&6+fi++ for ac_func in nan copysignf+do+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6+echo "configure:4407: checking for $ac_func" >&5+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then+ echo $ac_n "(cached) $ac_c" 1>&6+else+ cat > conftest.$ac_ext <<EOF+#line 4412 "configure"+#include "confdefs.h"+/* System header to define __stub macros and hopefully few prototypes,+ which can conflict with char $ac_func(); below. */+#include <assert.h>+/* Override any gcc2 internal prototype to avoid an error. */+/* We use char because int might match the return type of a gcc2+ builtin and then its argument prototype would still apply. */+char $ac_func();++int main() {++/* The GNU C library defines this for functions which it implements+ to always fail with ENOSYS. Some functions are actually named+ something starting with __ and the normal name is an alias. */+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)+choke me+#else+$ac_func();+#endif++; return 0; }+EOF+if { (eval echo configure:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+ rm -rf conftest*+ eval "ac_cv_func_$ac_func=yes"+else+ echo "configure: failed program was:" >&5+ cat conftest.$ac_ext >&5+ rm -rf conftest*+ eval "ac_cv_func_$ac_func=no"+fi+rm -f conftest*+fi++if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then+ echo "$ac_t""yes" 1>&6+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`+ cat >> confdefs.h <<EOF+#define $ac_tr_func 1+EOF+ +else+ echo "$ac_t""no" 1>&6+LIBMATHOBJS="$LIBMATHOBJS ${ac_func}.lo"+fi+done+++ for ac_func in __signbit+do+echo $ac_n "checking for $ac_func""... $ac_c" 1>&6+echo "configure:4464: checking for $ac_func" >&5+if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then+ echo $ac_n "(cached) $ac_c" 1>&6+else+ cat > conftest.$ac_ext <<EOF+#line 4469 "configure"+#include "confdefs.h"+/* System header to define __stub macros and hopefully few prototypes,+ which can conflict with char $ac_func(); below. */+#include <assert.h>+/* Override any gcc2 internal prototype to avoid an error. */+/* We use char because int might match the return type of a gcc2+ builtin and then its argument prototype would still apply. */+char $ac_func();++int main() {++/* The GNU C library defines this for functions which it implements+ to always fail with ENOSYS. Some functions are actually named+ something starting with __ and the normal name is an alias. */+#if defined (__stub_$ac_func) || defined (__stub___$ac_func)+choke me+#else+$ac_func();+#endif++; return 0; }+EOF+if { (eval echo configure:4492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+ rm -rf conftest*+ eval "ac_cv_func_$ac_func=yes"+else+ echo "configure: failed program was:" >&5+ cat conftest.$ac_ext >&5+ rm -rf conftest*+ eval "ac_cv_func_$ac_func=no"+fi+rm -f conftest*+fi++if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then+ echo "$ac_t""yes" 1>&6+ ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -