[PATCH] Make in-tree MSVC builds work

Mike Hommey mh+jemalloc at glandium.org
Thu May 29 01:01:10 PDT 2014


From: Mike Hommey <mh at glandium.org>

---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 045f62e..4944c44 100644
--- a/configure.ac
+++ b/configure.ac
@@ -142,7 +142,7 @@ if test "x$CFLAGS" = "x" ; then
     JE_CFLAGS_APPEND([-MT])
     JE_CFLAGS_APPEND([-W3])
     JE_CFLAGS_APPEND([-FS])
-    CPPFLAGS="$CPPFLAGS -I${srcroot}/include/msvc_compat"
+    CPPFLAGS="$CPPFLAGS -I${srcdir}/include/msvc_compat"
   fi
 fi
 dnl Append EXTRA_CFLAGS to CFLAGS, if defined.
@@ -157,7 +157,7 @@ if test "x${ac_cv_big_endian}" = "x1" ; then
 fi
 
 if test "x${je_cv_msvc}" = "xyes" -a "x${ac_cv_header_inttypes_h}" = "xno"; then
-  CPPFLAGS="$CPPFLAGS -I${srcroot}/include/msvc_compat/C99"
+  CPPFLAGS="$CPPFLAGS -I${srcdir}/include/msvc_compat/C99"
 fi
 
 AC_CHECK_SIZEOF([void *])
-- 
2.0.0.rc2



More information about the jemalloc-discuss mailing list