diff src/build-gcc.mk @ 3523:1b350761007f

allow native-gcc build to succeed
author John W. Eaton <jwe@octave.org>
date Sun, 16 Feb 2014 17:49:33 -0500
parents 2aaa6f511434
children bff3dfa5c343
line wrap: on
line diff
--- a/src/build-gcc.mk	Fri Feb 14 18:01:52 2014 -0500
+++ b/src/build-gcc.mk	Sun Feb 16 17:49:33 2014 -0500
@@ -29,7 +29,8 @@
     --disable-nls \
     --without-x \
     --disable-win32-registry \
-    --enable-threads=win32
+    --enable-threads=win32 \
+    --with-native-system-header-dir='/include'
   ifneq ($(ENABLE_64),yes)
     $(PKG)_SYSDEP_CONFIGURE_OPTIONS += \
       --disable-sjlj-exceptions
@@ -59,6 +60,7 @@
         --prefix='$(BUILD_TOOLS_PREFIX)' \
         --enable-languages='c,c++,fortran' \
         --disable-multilib \
+        --with-sysroot='$(HOST_PREFIX)' \
         $($(PKG)_SYSDEP_CONFIGURE_OPTIONS) \
         $(ENABLE_SHARED_OR_STATIC) \
         --disable-libgomp \
@@ -85,7 +87,9 @@
   mkdir '$(1).crt-build'
   cd '$(1).crt-build' && '$(1)/$(mingw-w64_SUBDIR)/mingw-w64-crt/configure' \
       --host='$(TARGET)' \
-      --prefix='$(HOST_PREFIX)'
+      --prefix='$(HOST_PREFIX)' \
+      --with-sysroot='$(HOST_PREFIX)' \
+      $(ENABLE_SHARED_OR_STATIC)
   $(MAKE) -C '$(1).crt-build' -j '$(JOBS)' || $(MAKE) -C '$(1).crt-build' -j '$(JOBS)'
   $(MAKE) -C '$(1).crt-build' -j 1 install