comparison src/native-gcc.mk @ 3554:b1ca68ddd02c

build native-gcc using untared dependancies within gcc source tree * src/native-gcc.mk: untar gmp, mpc, mpfr, cloog and isl into the gcc source tree before configure and build, set sysroot. * src/native-binutils.mk: set sysroot path. * src/mingw-w64-1-math-h.patch, mingw-w64-2-float-h.patch: New files.
author John Donoghue <john.donoghue@ieee.org>
date Fri, 21 Feb 2014 06:05:39 -0500
parents 1b350761007f
children 22b42ac3fd68
comparison
equal deleted inserted replaced
3553:c27b154dab6c 3554:b1ca68ddd02c
22 $(PKG)_SYSDEP_CONFIGURE_OPTIONS := \ 22 $(PKG)_SYSDEP_CONFIGURE_OPTIONS := \
23 --enable-version-specific-runtime-libs \ 23 --enable-version-specific-runtime-libs \
24 --disable-nls \ 24 --disable-nls \
25 --without-x \ 25 --without-x \
26 --disable-win32-registry \ 26 --disable-win32-registry \
27 --enable-threads=win32 \ 27 --with-native-system-header-dir='$(HOST_PREFIX)/include' \
28 --with-native-system-header-dir='$(HOST_PREFIX)/include' 28 --enable-threads=win32
29 ifneq ($(ENABLE_64),yes) 29 ifneq ($(ENABLE_64),yes)
30 $(PKG)_SYSDEP_CONFIGURE_OPTIONS += \ 30 $(PKG)_SYSDEP_CONFIGURE_OPTIONS += \
31 --disable-sjlj-exceptions 31 --disable-sjlj-exceptions
32 endif 32 endif
33 endif 33 endif
38 grep -v '^4\.[543]\.' | \ 38 grep -v '^4\.[543]\.' | \
39 head -1 39 head -1
40 endef 40 endef
41 41
42 define $(PKG)_BUILD 42 define $(PKG)_BUILD
43 # unpack support libraries
44 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,gmp,$(TAR))
45 mv '$(1)/$(gmp_SUBDIR)' '$(1)/gmp'
46 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,mpc,$(TAR))
47 mv '$(1)/$(mpc_SUBDIR)' '$(1)/mpc'
48 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,mpfr,$(TAR))
49 mv '$(1)/$(mpfr_SUBDIR)' '$(1)/mpfr'
50 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,cloog,$(TAR))
51 mv '$(1)/$(cloog_SUBDIR)' '$(1)/cloog'
52 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,isl,$(TAR))
53 mv '$(1)/$(isl_SUBDIR)' '$(1)/isl'
54 #--with-native-system-header-dir='/include'
55
43 # configure gcc 56 # configure gcc
44 mkdir '$(1).build' 57 mkdir '$(1).build'
45 cd '$(1).build' && '$(1)/configure' \ 58 cd '$(1).build' && '$(1)/configure' \
46 --target='$(TARGET)' \ 59 --target='$(TARGET)' \
47 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \ 60 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
50 --disable-multilib \ 63 --disable-multilib \
51 $($(PKG)_SYSDEP_CONFIGURE_OPTIONS) \ 64 $($(PKG)_SYSDEP_CONFIGURE_OPTIONS) \
52 $(ENABLE_SHARED_OR_STATIC) \ 65 $(ENABLE_SHARED_OR_STATIC) \
53 --disable-libgomp \ 66 --disable-libgomp \
54 --disable-libmudflap \ 67 --disable-libmudflap \
68 --with-mpfr-include='$(1)/mpfr/src' \
69 --with-mpfr-lib='$(1).build/mpfr/src/.libs' \
55 $(shell [ `uname -s` == Darwin ] && echo "LDFLAGS='-Wl,-no_pie'") 70 $(shell [ `uname -s` == Darwin ] && echo "LDFLAGS='-Wl,-no_pie'")
56 71
57 $(MAKE) -C '$(1).build' -j '$(JOBS)' 72 $(MAKE) -C '$(1).build' -j '$(JOBS)'
58 $(MAKE) -C '$(1).build' -j 1 install 73 $(MAKE) -C '$(1).build' -j 1 install
59 endef 74 endef