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

📄 ltcf-c.sh

📁 基于4个mips核的noc设计
💻 SH
📖 第 1 页 / 共 2 页
字号:
    case "$host_os" in    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;    esac    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'    hardcode_libdir_separator=:    hardcode_direct=yes    hardcode_minus_L=yes # Not in the search PATH, but as the default			 # location of the library.    export_dynamic_flag_spec='${wl}-E'    ;;  irix5* | irix6*)    if test "$with_gcc" = yes; then      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'    else      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'    fi    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'    hardcode_libdir_separator=:    link_all_deplibs=yes    ;;  netbsd*)    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out    else      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF    fi    hardcode_libdir_flag_spec='${wl}-R$libdir'    hardcode_direct=yes    hardcode_shlibpath_var=no    ;;  openbsd*)    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'    hardcode_libdir_flag_spec='-R$libdir'    hardcode_direct=yes    hardcode_shlibpath_var=no    ;;  os2*)    hardcode_libdir_flag_spec='-L$libdir'    hardcode_minus_L=yes    allow_undefined_flag=unsupported    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'    ;;  osf3*)    if test "$with_gcc" = yes; then      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'    else      allow_undefined_flag=' -expect_unresolved \*'      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'    fi    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'    hardcode_libdir_separator=:    ;;  osf4* | osf5*)	# as osf3* with the addition of -msym flag    if test "$with_gcc" = yes; then      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'    else      allow_undefined_flag=' -expect_unresolved \*'      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'    fi    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'    hardcode_libdir_separator=:    ;;  sco3.2v5*)    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'    hardcode_shlibpath_var=no    runpath_var=LD_RUN_PATH    hardcode_runpath_var=yes    ;;  solaris*)    no_undefined_flag=' -z text'    # $CC -shared without GNU ld will not create a library from C++    # object files and a static libstdc++, better avoid it by now    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'    hardcode_libdir_flag_spec='-R$libdir'    hardcode_shlibpath_var=no    case "$host_os" in    solaris2.[0-5] | solaris2.[0-5].*) ;;    *) # Supported since Solaris 2.6 (maybe 2.5.1?)      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;    esac    link_all_deplibs=yes    ;;  sunos4*)    archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'    hardcode_libdir_flag_spec='-L$libdir'    hardcode_direct=yes    hardcode_minus_L=yes    hardcode_shlibpath_var=no    ;;  sysv4)    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'    runpath_var='LD_RUN_PATH'    hardcode_shlibpath_var=no    hardcode_direct=no #Motorola manual says yes, but my tests say they lie    ;;  sysv4.3*)    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'    hardcode_shlibpath_var=no    export_dynamic_flag_spec='-Bexport'    ;;  sysv5*)    no_undefined_flag=' -z text'    # $CC -shared without GNU ld will not create a library from C++    # object files and a static libstdc++, better avoid it by now    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'    hardcode_libdir_flag_spec=    hardcode_shlibpath_var=no    runpath_var='LD_RUN_PATH'    ;;  uts4*)    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'    hardcode_libdir_flag_spec='-L$libdir'    hardcode_shlibpath_var=no    ;;  dgux*)    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'    hardcode_libdir_flag_spec='-L$libdir'    hardcode_shlibpath_var=no    ;;  sysv4*MP*)    if test -d /usr/nec; then      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'      hardcode_shlibpath_var=no      runpath_var=LD_RUN_PATH      hardcode_runpath_var=yes      ld_shlibs=yes    fi    ;;  sysv4.2uw2*)    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'    hardcode_direct=yes    hardcode_minus_L=no    hardcode_shlibpath_var=no    hardcode_runpath_var=yes    runpath_var=LD_RUN_PATH    ;;  unixware7*)    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'    runpath_var='LD_RUN_PATH'    hardcode_shlibpath_var=no    ;;  *)    ld_shlibs=no    ;;  esacfi## Compiler Characteristics: PIC flags, static flags, etcif test "X${ac_cv_prog_cc_pic+set}" = Xset; then  :else  ac_cv_prog_cc_pic=  ac_cv_prog_cc_shlib=  ac_cv_prog_cc_wl=  ac_cv_prog_cc_static=  ac_cv_prog_cc_no_builtin=  ac_cv_prog_cc_can_build_shared=$can_build_shared  if test "$with_gcc" = yes; then    ac_cv_prog_cc_wl='-Wl,'    ac_cv_prog_cc_static='-static'    case "$host_os" in    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)      # PIC is the default for these OSes.      ;;    aix*)      # Below there is a dirty hack to force normal static linking with -ldl      # The problem is because libdl dynamically linked with both libc and      # libC (AIX C++ library), which obviously doesn't included in libraries      # list by gcc. This cause undefined symbols with -static flags.      # This hack allows C programs to be linked with "-static -ldl", but      # we not sure about C++ programs.      ac_cv_prog_cc_static="$ac_cv_prog_cc_static ${ac_cv_prog_cc_wl}-lC"      ;;    cygwin* | mingw* | os2*)      # This hack is so that the source file can tell whether it is being      # built for inclusion in a dll (and should export symbols for example).      ac_cv_prog_cc_pic='-DDLL_EXPORT'      ;;    amigaos*)      # FIXME: we need at least 68020 code to build shared libraries, but      # adding the `-m68020' flag to GCC prevents building anything better,      # like `-m68040'.      ac_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'      ;;    sysv4*MP*)      if test -d /usr/nec; then	 ac_cv_prog_cc_pic=-Kconform_pic      fi      ;;    *)      ac_cv_prog_cc_pic='-fPIC'      ;;    esac  else    # PORTME Check for PIC flags for the system compiler.    case "$host_os" in    aix3* | aix4*)     # All AIX code is PIC.      ac_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'      ;;    hpux9* | hpux10* | hpux11*)      # Is there a better ac_cv_prog_cc_static that works with the bundled CC?      ac_cv_prog_cc_wl='-Wl,'      ac_cv_prog_cc_static="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"      ac_cv_prog_cc_pic='+Z'      ;;    irix5* | irix6*)      ac_cv_prog_cc_wl='-Wl,'      ac_cv_prog_cc_static='-non_shared'      # PIC (with -KPIC) is the default.      ;;    cygwin* | mingw* | os2*)      # This hack is so that the source file can tell whether it is being      # built for inclusion in a dll (and should export symbols for example).      ac_cv_prog_cc_pic='-DDLL_EXPORT'      ;;    osf3* | osf4* | osf5*)      # All OSF/1 code is PIC.      ac_cv_prog_cc_wl='-Wl,'      ac_cv_prog_cc_static='-non_shared'      ;;    sco3.2v5*)      ac_cv_prog_cc_pic='-Kpic'      ac_cv_prog_cc_static='-dn'      ac_cv_prog_cc_shlib='-belf'      ;;    solaris*)      ac_cv_prog_cc_pic='-KPIC'      ac_cv_prog_cc_static='-Bstatic'      ac_cv_prog_cc_wl='-Wl,'      ;;    sunos4*)      ac_cv_prog_cc_pic='-PIC'      ac_cv_prog_cc_static='-Bstatic'      ac_cv_prog_cc_wl='-Qoption ld '      ;;    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)      ac_cv_prog_cc_pic='-KPIC'      ac_cv_prog_cc_static='-Bstatic'      ac_cv_prog_cc_wl='-Wl,'      ;;    uts4*)      ac_cv_prog_cc_pic='-pic'      ac_cv_prog_cc_static='-Bstatic'      ;;    sysv4*MP*)      if test -d /usr/nec ;then	ac_cv_prog_cc_pic='-Kconform_pic'	ac_cv_prog_cc_static='-Bstatic'      fi      ;;    *)      ac_cv_prog_cc_can_build_shared=no      ;;    esac  fi  ac_cv_prog_cc_pic="$ac_cv_prog_cc_pic -DPIC"fineed_lc=yesif test "$enable_shared" = yes && test "$with_gcc" = yes; then  case "$archive_cmds" in  *'~'*)    # FIXME: we may have to deal with multi-command sequences.    ;;  '$CC '*)    # Test whether the compiler implicitly links with -lc since on some    # systems, -lgcc has to come before -lc. If gcc already passes -lc    # to ld, don't add -lc before -lgcc.    echo $ac_n "checking whether -lc should be explicitly linked in... $ac_c" 1>&6    if eval "test \"`echo '$''{'ac_cv_archive_cmds_needs_lc'+set}'`\" = set"; then      echo $ac_n "(cached) $ac_c" 1>&6      need_lc=$ac_cv_archive_cmds_needs_lc    else      $rm conftest*      echo "static int dummy;" > conftest.$ac_ext      if { (eval echo ltcf-c.sh:need_lc: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then	# Append any warnings to the config.log.	cat conftest.err 1>&5	soname=conftest	lib=conftest	libobjs=conftest.o	deplibs=	wl=$ac_cv_prog_cc_wl	compiler_flags=-v	linker_flags=-v	verstring=	output_objdir=.	libname=conftest	save_allow_undefined_flag=$allow_undefined_flag	allow_undefined_flag=	if { (eval echo ltcf-c.sh:need_lc: \"$archive_cmds\") 1>&5; (eval $archive_cmds) 2>&1 | grep " -lc " 1>&5 ; }; then	  need_lc=no	fi	allow_undefined_flag=$save_allow_undefined_flag      else	cat conftest.err 1>&5      fi    fi    $rm conftest*    echo "$ac_t$need_lc" 1>&6    ;;  esacfiac_cv_archive_cmds_needs_lc=$need_lc

⌨️ 快捷键说明

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