⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gcc-3.2.3-libffi-1.patch

📁 linux下编译交叉工具链的工具源码
💻 PATCH
📖 第 1 页 / 共 5 页
字号:
-  echo '#line 1702 "configure"' > conftest.$ac_ext-  if { (eval echo configure:1703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then+  echo '#line 1711 "configure"' > conftest.$ac_ext+  if { (eval echo configure:1712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then     case `/usr/bin/file conftest.$ac_objext` in     *32-bit*)       LD="${LD-ld} -32"@@ -1715,12 +1724,70 @@   rm -rf conftest*   ;; +ia64-*-hpux*)+  # Find out which ABI we are using.+  echo 'int i;' > conftest.$ac_ext+  if { (eval echo configure:1731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then+    case "`/usr/bin/file conftest.o`" in+    *ELF-32*)+      HPUX_IA64_MODE="32"+      ;;+    *ELF-64*)+      HPUX_IA64_MODE="64"+      ;;+    esac+  fi+  rm -rf conftest*+  ;;++x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)+  # Find out which ABI we are using.+  echo 'int i;' > conftest.$ac_ext+  if { (eval echo configure:1747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then+    case "`/usr/bin/file conftest.o`" in+    *32-bit*)+      case $host in+        x86_64-*linux*)+          LD="${LD-ld} -m elf_i386"+          ;;+        ppc64-*linux*)+          LD="${LD-ld} -m elf32ppclinux"+          ;;+        s390x-*linux*)+          LD="${LD-ld} -m elf_s390"+          ;;+        sparc64-*linux*)+          LD="${LD-ld} -m elf32_sparc"+          ;;+      esac+      ;;+    *64-bit*)+      case $host in+        x86_64-*linux*)+          LD="${LD-ld} -m elf_x86_64"+          ;;+        ppc*-*linux*|powerpc*-*linux*)+          LD="${LD-ld} -m elf64ppc"+          ;;+        s390*-*linux*)+          LD="${LD-ld} -m elf64_s390"+          ;;+        sparc*-*linux*)+          LD="${LD-ld} -m elf64_sparc"+          ;;+      esac+      ;;+    esac+  fi+  rm -rf conftest*+  ;;+ *-*-sco3.2v5*)   # On SCO OpenServer 5, we need -belf to get full-featured binaries.   SAVE_CFLAGS="$CFLAGS"   CFLAGS="$CFLAGS -belf"   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6-echo "configure:1724: checking whether the C compiler needs -belf" >&5+echo "configure:1791: checking whether the C compiler needs -belf" >&5 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then   echo $ac_n "(cached) $ac_c" 1>&6 else@@ -1733,14 +1800,14 @@ cross_compiling=$ac_cv_prog_cc_cross       cat > conftest.$ac_ext <<EOF-#line 1737 "configure"+#line 1804 "configure" #include "confdefs.h"  int main() {  ; return 0; } EOF-if { (eval echo configure:1744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+if { (eval echo configure:1811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then   rm -rf conftest*   lt_cv_cc_needs_belf=yes else@@ -1868,7 +1935,7 @@ # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # ./install, which can be erroneously created by make from ./install.sh. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6-echo "configure:1872: checking for a BSD compatible install" >&5+echo "configure:1939: checking for a BSD compatible install" >&5 if test -z "$INSTALL"; then if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then   echo $ac_n "(cached) $ac_c" 1>&6@@ -1921,7 +1988,7 @@ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'  echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6-echo "configure:1925: checking whether build environment is sane" >&5+echo "configure:1992: checking whether build environment is sane" >&5 # Just in case sleep 1 echo timestamp > conftestfile@@ -1978,7 +2045,7 @@ test "$program_transform_name" = "" && program_transform_name="s,x,x,"  echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6-echo "configure:1982: checking whether ${MAKE-make} sets \${MAKE}" >&5+echo "configure:2049: checking whether ${MAKE-make} sets \${MAKE}" >&5 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then   echo $ac_n "(cached) $ac_c" 1>&6@@ -2017,7 +2084,7 @@  missing_dir=`cd $ac_aux_dir && pwd` echo $ac_n "checking for working aclocal""... $ac_c" 1>&6-echo "configure:2021: checking for working aclocal" >&5+echo "configure:2088: checking for working aclocal" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf.  Sigh.@@ -2030,7 +2097,7 @@ fi  echo $ac_n "checking for working autoconf""... $ac_c" 1>&6-echo "configure:2034: checking for working autoconf" >&5+echo "configure:2101: checking for working autoconf" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf.  Sigh.@@ -2043,7 +2110,7 @@ fi  echo $ac_n "checking for working automake""... $ac_c" 1>&6-echo "configure:2047: checking for working automake" >&5+echo "configure:2114: checking for working automake" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf.  Sigh.@@ -2056,7 +2123,7 @@ fi  echo $ac_n "checking for working autoheader""... $ac_c" 1>&6-echo "configure:2060: checking for working autoheader" >&5+echo "configure:2127: checking for working autoheader" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf.  Sigh.@@ -2069,7 +2136,7 @@ fi  echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6-echo "configure:2073: checking for working makeinfo" >&5+echo "configure:2140: checking for working makeinfo" >&5 # Run test in a subshell; some versions of sh will print an error if # an executable is not found, even if stderr is redirected. # Redirect stdin to placate older versions of autoconf.  Sigh.@@ -2086,7 +2153,7 @@   echo $ac_n "checking for executable suffix""... $ac_c" 1>&6-echo "configure:2090: checking for executable suffix" >&5+echo "configure:2157: checking for executable suffix" >&5 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then   echo $ac_n "(cached) $ac_c" 1>&6 else@@ -2096,7 +2163,7 @@   rm -f conftest*   echo 'int main () { return 0; }' > conftest.$ac_ext   ac_cv_exeext=-  if { (eval echo configure:2100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then+  if { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then     for file in conftest.*; do       case $file in       *.c | *.o | *.obj) ;;@@ -2117,7 +2184,7 @@ ac_exeext=$EXEEXT  echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6-echo "configure:2121: checking whether to enable maintainer-specific portions of Makefiles" >&5+echo "configure:2188: checking whether to enable maintainer-specific portions of Makefiles" >&5     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then   enableval="$enable_maintainer_mode"@@ -2143,7 +2210,7 @@ # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6-echo "configure:2147: checking for $ac_word" >&5+echo "configure:2214: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then   echo $ac_n "(cached) $ac_c" 1>&6 else@@ -2173,7 +2240,7 @@   # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6-echo "configure:2177: checking for $ac_word" >&5+echo "configure:2244: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then   echo $ac_n "(cached) $ac_c" 1>&6 else@@ -2224,7 +2291,7 @@       # Extract the first word of "cl", so it can be a program name with args. set dummy cl; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6-echo "configure:2228: checking for $ac_word" >&5+echo "configure:2295: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then   echo $ac_n "(cached) $ac_c" 1>&6 else@@ -2256,7 +2323,7 @@ fi  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6-echo "configure:2260: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5+echo "configure:2327: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5  ac_ext=c # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.@@ -2267,12 +2334,12 @@  cat > conftest.$ac_ext << EOF -#line 2271 "configure"+#line 2338 "configure" #include "confdefs.h"  main(){return(0);} EOF-if { (eval echo configure:2276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then+if { (eval echo configure:2343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then   ac_cv_prog_cc_works=yes   # If we can't run a trivial program, we are probably using a cross compiler.   if (./conftest; exit) 2>/dev/null; then@@ -2298,12 +2365,12 @@   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } fi echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6-echo "configure:2302: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5+echo "configure:2369: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 cross_compiling=$ac_cv_prog_cc_cross  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6-echo "configure:2307: checking whether we are using GNU C" >&5+echo "configure:2374: checking whether we are using GNU C" >&5 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then   echo $ac_n "(cached) $ac_c" 1>&6 else@@ -2312,7 +2379,7 @@   yes; #endif EOF-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2383: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then   ac_cv_prog_gcc=yes else   ac_cv_prog_gcc=no@@ -2331,7 +2398,7 @@ ac_save_CFLAGS="$CFLAGS" CFLAGS= echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6-echo "configure:2335: checking whether ${CC-cc} accepts -g" >&5+echo "configure:2402: checking whether ${CC-cc} accepts -g" >&5 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then   echo $ac_n "(cached) $ac_c" 1>&6 else@@ -2381,17 +2448,23 @@ i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;; sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;; sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;-sparc-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;-sparc64-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;-alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd*) TARGET=ALPHA; TARGETDIR=alpha;;+sparc-*-linux* | sparc-*-netbsdelf*) TARGET=SPARC; TARGETDIR=sparc;;+sparc64-*-linux* | sparc64-*-netbsd*) TARGET=SPARC; TARGETDIR=sparc;;+alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd* | alpha*-*-netbsd*) TARGET=ALPHA; TARGETDIR=alpha;; ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;; m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;+mips64*-*);;+mips*-*-linux*) TARGET=MIPS_LINUX; TARGETDIR=mips;; powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;; powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;; powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;; powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;; rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;; arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;+s390-*-linux-*) TARGET=S390; TARGETDIR=s390;;+s390x-*-linux-*) TARGET=S390; TARGETDIR=s390;;+x86_64-*-linux*) TARGET=X86_64; TARGETDIR=x86;;+sh-*-linux* | sh[34]*-*-linux*) TARGET=SH; TARGETDIR=sh;; esac  if test $TARGETDIR = unknown; then@@ -2418,6 +2491,15 @@ fi  +if test x$TARGET = xMIPS_LINUX; then+  MIPS_LINUX_TRUE=+  MIPS_LINUX_FALSE='#'+else+  MIPS_LINUX_TRUE='#'+  MIPS_LINUX_FALSE=+fi++ if test x$TARGET = xSPARC; then   SPARC_TRUE=   SPARC_FALSE='#'@@ -2507,8 +2589,39 @@   ARM_FALSE= fi ++if test x$TARGET = xS390; then+  S390_TRUE=+  S390_FALSE='#'+else+  S390_TRUE='#'+  S390_FALSE=

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -