changeset 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 9bc3862c2091
children 8a4a11234ccf
files src/build-binutils.mk src/build-gcc.mk src/native-gcc.mk
diffstat 3 files changed, 10 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/build-binutils.mk	Fri Feb 14 18:01:52 2014 -0500
+++ b/src/build-binutils.mk	Sun Feb 16 17:49:33 2014 -0500
@@ -42,12 +42,13 @@
         --target='$(TARGET)' \
         --build='$(BUILD_SYSTEM)' \
         --prefix='$(BUILD_TOOLS_PREFIX)' \
+        --libdir='$(BUILD_TOOLS_PREFIX)/lib' \
         --with-gcc \
         --with-gnu-ld \
         --with-gnu-as \
         --disable-nls \
         --disable-multilib \
-        --with-sysroot='$(BUILD_TOOLS_PREFIX)' \
+        --with-sysroot='$(HOST_PREFIX)' \
         $(ENABLE_SHARED_OR_STATIC) \
         --disable-werror
     $(MAKE) -C '$(1)' -j '$(JOBS)'
--- 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
 
--- a/src/native-gcc.mk	Fri Feb 14 18:01:52 2014 -0500
+++ b/src/native-gcc.mk	Sun Feb 16 17:49:33 2014 -0500
@@ -12,11 +12,7 @@
 
 $(PKG)_DEPS := native-binutils cloog gmp isl mpc mpfr
 ifeq ($(MXE_SYSTEM),mingw)
-  ifeq ($(ENABLE_64),yes)
-    $(PKG)_DEPS += mingw-w64
-  else
-    $(PKG)_DEPS += mingwrt w32api
-  endif
+  $(PKG)_DEPS += mingw-w64
 endif
 ifneq ($(BUILD_SHARED),yes)
 $(PKG)_STATIC_FLAG := --static
@@ -29,7 +25,7 @@
     --without-x \
     --disable-win32-registry \
     --enable-threads=win32 \
-    --with-native-system-header-dir=$(HOST_PREFIX)/include
+    --with-native-system-header-dir='$(HOST_PREFIX)/include'
   ifneq ($(ENABLE_64),yes)
     $(PKG)_SYSDEP_CONFIGURE_OPTIONS += \
       --disable-sjlj-exceptions