comparison src/gcc.mk @ 1066:c7b2a7ef1bf9

use a build directory separate from the source directory in package gcc (by Tony Theodore)
author Volker Grabsch <vog@notjusthosting.com>
date Tue, 15 Jun 2010 22:12:49 +0200
parents a4ef45a41359
children e878941387e3
comparison
equal deleted inserted replaced
1065:7da042a72e83 1066:c7b2a7ef1bf9
28 mv '$(1)/$(gcc-mpc_SUBDIR)' '$(1)/mpc' 28 mv '$(1)/$(gcc-mpc_SUBDIR)' '$(1)/mpc'
29 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,gcc-mpfr) 29 cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,gcc-mpfr)
30 mv '$(1)/$(gcc-mpfr_SUBDIR)' '$(1)/mpfr' 30 mv '$(1)/$(gcc-mpfr_SUBDIR)' '$(1)/mpfr'
31 31
32 # build GCC and support libraries 32 # build GCC and support libraries
33 mkdir '$(1)/build' 33 mkdir '$(1).build'
34 # mpfr 3.0.0 configure expects these gmp headers here 34 # mpfr 3.0.0 configure expects these gmp headers here
35 mkdir '$(1)/build/gmp' 35 mkdir '$(1).build/gmp'
36 ln -s '$(1)/gmp/gmp-impl.h' '$(1)/build/gmp/' 36 ln -s '$(1)/gmp/gmp-impl.h' '$(1).build/gmp/'
37 ln -s '$(1)/gmp/longlong.h' '$(1)/build/gmp/' 37 ln -s '$(1)/gmp/longlong.h' '$(1).build/gmp/'
38 cd '$(1)/build' && '$(1)/configure' \ 38 cd '$(1).build' && '$(1)/configure' \
39 --target='$(TARGET)' \ 39 --target='$(TARGET)' \
40 --prefix='$(PREFIX)' \ 40 --prefix='$(PREFIX)' \
41 --enable-languages='c,c++,objc,fortran' \ 41 --enable-languages='c,c++,objc,fortran' \
42 --enable-version-specific-runtime-libs \ 42 --enable-version-specific-runtime-libs \
43 --with-gcc \ 43 --with-gcc \
48 --without-x \ 48 --without-x \
49 --disable-win32-registry \ 49 --disable-win32-registry \
50 --enable-threads=win32 \ 50 --enable-threads=win32 \
51 --disable-libgomp \ 51 --disable-libgomp \
52 --disable-libmudflap 52 --disable-libmudflap
53 $(MAKE) -C '$(1)/build' -j '$(JOBS)' 53 $(MAKE) -C '$(1).build' -j '$(JOBS)'
54 $(MAKE) -C '$(1)/build' -j 1 install 54 $(MAKE) -C '$(1).build' -j 1 install
55 55
56 # create pkg-config script 56 # create pkg-config script
57 (echo '#!/bin/sh'; \ 57 (echo '#!/bin/sh'; \
58 echo 'PKG_CONFIG_PATH= PKG_CONFIG_LIBDIR='\''$(PREFIX)/$(TARGET)/lib/pkgconfig'\'' exec pkg-config --static "$$@"') \ 58 echo 'PKG_CONFIG_PATH= PKG_CONFIG_LIBDIR='\''$(PREFIX)/$(TARGET)/lib/pkgconfig'\'' exec pkg-config --static "$$@"') \
59 > '$(PREFIX)/bin/$(TARGET)-pkg-config' 59 > '$(PREFIX)/bin/$(TARGET)-pkg-config'