X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libgcc%2Fconfigure;h=8a27aab188602e8b058d3724b8b5b2e2130e03e9;hb=0dfaa5df6395620e0275e646938feff1faa28f64;hp=5c8e3a01ba392e21e46a111eb90245806b0c75b6;hpb=70fbcd6d73266a946403aeb71fedad9b97374065;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libgcc/configure b/libgcc/configure index 5c8e3a01ba3..8a27aab1886 100644 --- a/libgcc/configure +++ b/libgcc/configure @@ -576,10 +576,13 @@ RANLIB NM LIPO AR +toolexeclibdir +toolexecdir target_subdir host_subdir build_subdir build_libsubdir +target_noncanonical host_noncanonical host_os host_vendor @@ -2174,6 +2177,8 @@ esac esac + + # post-stage1 host modules use a different CC_FOR_BUILD so, in order to # have matching libraries, they should use host libraries: Makefile.tpl # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). @@ -2204,6 +2209,36 @@ fi target_subdir=${target_noncanonical} +# Calculate toolexeclibdir +# Also toolexecdir, though it's only used in toolexeclibdir +case ${version_specific_libs} in + yes) + # Need the gcc compiler version to know where to install libraries + # and header files if --enable-version-specific-runtime-libs option + # is selected. + toolexecdir='$(libdir)/gcc/$(target_noncanonical)' + toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' + ;; + no) + if test -n "$with_cross_host" && + test x"$with_cross_host" != x"no"; then + # Install a library built with a cross compiler in tooldir, not libdir. + toolexecdir='$(exec_prefix)/$(target_noncanonical)' + toolexeclibdir='$(toolexecdir)/lib' + else + toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)' + toolexeclibdir='$(libdir)' + fi + multi_os_directory=`$CC -print-multi-os-directory` + case $multi_os_directory in + .) ;; # Avoid trailing /. + *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; + esac + ;; +esac + + + if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. set dummy ${ac_tool_prefix}ar; ac_word=$2 @@ -3707,6 +3742,30 @@ $as_echo "$libgcc_cv_fixed_point" >&6; } fixed_point=$libgcc_cv_fixed_point +# Check for assembler CFI support. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports CFI directives" >&5 +$as_echo_n "checking whether assembler supports CFI directives... " >&6; } +if test "${libgcc_cv_cfi+set}" = set; then : + $as_echo_n "(cached) " >&6 +else + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +asm("\n\ + .text\n\ + .cfi_startproc\n\ + .cfi_personality 0, symbol\n\ + .cfi_endproc"); +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + libgcc_cv_cfi=yes +else + libgcc_cv_cfi=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcc_cv_cfi" >&5 +$as_echo "$libgcc_cv_cfi" >&6; } + # Check 32bit or 64bit for x86. case ${host} in i?86*-*-* | x86_64*-*-*) @@ -3730,7 +3789,7 @@ esac # Link with -nostartfiles -nodefaultlibs since neither are present while # building libgcc. case ${host} in -i?86-*-solaris2.1[0-9]*) +i?86-*-solaris2*) cat > conftest.s <