X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=configure.in;h=928a06347e64803fcb8b761363f7ffdf79f1592f;hb=01c048f059becbd44ef7bd057e8a9b8721de7245;hp=c8be62612ada2b10955c3beacbd950e73ff27461;hpb=ea8a36774a9b2baadcb1c80d29769c56a8ed5c1e;p=mono.git diff --git a/configure.in b/configure.in index c8be62612ad..928a06347e6 100644 --- a/configure.in +++ b/configure.in @@ -1909,7 +1909,9 @@ if test "x$enable_llvm" = "xyes"; then AC_MSG_ERROR([llvm-config not found.]) fi - LLVM_CXXFLAGS=`$LLVM_CONFIG --cflags` + # The output of --cflags seems to include optimizations flags too + LLVM_CFLAGS=`$LLVM_CONFIG --cflags | sed -e 's/-O2//g' | sed -e 's/-O0//g' | sed -e 's/-fomit-frame-pointer//g' | sed -e 's/-fPIC//g'` + LLVM_CXXFLAGS=`$LLVM_CONFIG --cxxflags` LLVM_LDFLAGS=`$LLVM_CONFIG --ldflags` LLVM_LIBS=`$LLVM_CONFIG --libs core bitwriter jit x86codegen` LLVM_LIBS="$LLVM_LDFLAGS $LLVM_LIBS -lstdc++" @@ -1926,6 +1928,7 @@ if test "x$enable_llvm" = "xyes"; then # llvm's config.h LLVM_CXXFLAGS="$LLVM_CXXFLAGS -DLLVM_MAJOR_VERSION=$major_version -DLLVM_MINOR_VERSION=$minor_version" + AC_SUBST(LLVM_CFLAGS) AC_SUBST(LLVM_CXXFLAGS) AC_SUBST(LLVM_LIBS) AC_SUBST(LLVM_LDFLAGS) @@ -2482,7 +2485,7 @@ if test x$host_win32 = xyes; then if test "x$cross_compiling" = "xno"; then mono_cfg_dir=`cygpath -w -a $mono_cfg_root`\\etc else - mono_cfg_dir=`echo $mono_cfg_root | tr '/' '\\\'`\\etc + mono_cfg_dir=`echo $mono_cfg_root | tr '/' '\\'`\\etc fi else mono_cfg_dir=$mono_cfg_root/etc