llvm.org GIT mirror llvm / f5c9467
Make the check for GCC version more robust, fix shared library dependencies in makefile, and fix llvm_cv_no_link_all_option on darwin. Patch by Shantonu Sen, more info here: http://lists.cs.uiuc.edu/pipermail/llvmdev/2008-February/012410.html git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46760 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 11 years ago
2 changed file(s) with 6 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
804804 else
805805 SharedLibKindMessage := "Shared Library"
806806 endif
807 $(LibName.LA): $(ObjectsLO) $(LibDir)/.dir
807 $(LibName.LA): $(ObjectsLO) $(ProjLibsPaths) $(LLVMLibsPaths) $(LibDir)/.dir
808808 $(Echo) Linking $(BuildMode) $(SharedLibKindMessage) \
809809 $(LIBRARYNAME)$(SHLIBEXT)
810810 $(Verb) $(LTLink) -o $@ $(ObjectsLO) $(ProjLibsOptions) \
118118 llvm_cv_platform_type="Unix" ;;
119119 *-*-darwin*)
120120 llvm_cv_link_all_option="-Wl,-all_load"
121 llvm_cv_link_all_option="-Wl,-noall_load"
121 llvm_cv_no_link_all_option="-Wl,-noall_load"
122122 llvm_cv_os_type="Darwin"
123123 llvm_cv_platform_type="Unix" ;;
124124 *-*-freebsd*)
655655 dnl Verify that GCC is version 3.0 or higher
656656 if test "$GCC" = "yes"
657657 then
658 gccmajor=`$CC --version | head -n 1 | sed 's/[[^0-9]]*\([[0-9.]]\).*/\1/'`
659 if test "$gccmajor" -lt "3"
660 then
661 AC_MSG_ERROR([gcc 3.x required, but you have a lower version])
662 fi
658 AC_COMPILE_IFELSE([[#if !defined(__GNUC__) || __GNUC__ < 3
659 #error Unsupported GCC version
660 #endif
661 ]], [], [AC_MSG_ERROR([gcc 3.x required, but you have a lower version])])
663662 fi
664663
665664 dnl Check for GNU Make. We use its extensions, so don't build without it