comparison src/native-gcc.mk @ 2997:4f9b72cf7ee7

allow native builds too
author John W. Eaton <jwe@octave.org>
date Tue, 28 May 2013 17:31:59 -0400
parents c90f5757f351
children 100e618349f7
comparison
equal deleted inserted replaced
2996:446aa596bb99 2997:4f9b72cf7ee7
50 --enable-threads=win32 \ 50 --enable-threads=win32 \
51 --disable-libgomp \ 51 --disable-libgomp \
52 --disable-libmudflap \ 52 --disable-libmudflap \
53 --with-mpfr-include='$(1)/mpfr/src' \ 53 --with-mpfr-include='$(1)/mpfr/src' \
54 --with-mpfr-lib='$(1).build/mpfr/src/.libs' \ 54 --with-mpfr-lib='$(1).build/mpfr/src/.libs' \
55 --with-native-system-header-dir=$(PREFIX)/$(TARGET)/include \ 55 --with-native-system-header-dir=$(MXE_INCDIR) \
56 $(shell [ `uname -s` == Darwin ] && echo "LDFLAGS='-Wl,-no_pie'") 56 $(shell [ `uname -s` == Darwin ] && echo "LDFLAGS='-Wl,-no_pie'")
57 $(MAKE) -C '$(1).build' -j '$(JOBS)' 57 $(MAKE) -C '$(1).build' -j '$(JOBS)'
58 $(MAKE) -C '$(1).build' -j 1 DESTDIR='$(PREFIX)/../native-tools' install 58 $(MAKE) -C '$(1).build' -j 1 DESTDIR='$(PREFIX)/../native-tools' install
59 59
60 # # create pkg-config script 60 # # create pkg-config script
61 # (echo '#!/bin/sh'; \ 61 # (echo '#!/bin/sh'; \
62 # echo 'PKG_CONFIG_PATH="$$PKG_CONFIG_PATH_$(subst -,_,$(TARGET))" PKG_CONFIG_LIBDIR='\''$(PREFIX)/$(TARGET)/lib/pkgconfig'\'' exec pkg-config $($(PKG)_STATIC_FLAG) "$$@"') \ 62 # echo 'PKG_CONFIG_PATH="$$PKG_CONFIG_PATH_$(subst -,_,$(TARGET))" PKG_CONFIG_LIBDIR='\''$(MXE_LIBDIR)/pkgconfig'\'' exec pkg-config $($(PKG)_STATIC_FLAG) "$$@"') \
63 # > '$(PREFIX)/bin/$(TARGET)-pkg-config' 63 # > '$(PREFIX)/bin/$(TARGET)-pkg-config'
64 # chmod 0755 '$(PREFIX)/bin/$(TARGET)-pkg-config' 64 # chmod 0755 '$(PREFIX)/bin/$(TARGET)-pkg-config'
65 65
66 # # create the CMake toolchain file 66 # # create the CMake toolchain file
67 # [ -d '$(dir $(CMAKE_TOOLCHAIN_FILE))' ] || mkdir -p '$(dir $(CMAKE_TOOLCHAIN_FILE))' 67 # [ -d '$(dir $(CMAKE_TOOLCHAIN_FILE))' ] || mkdir -p '$(dir $(CMAKE_TOOLCHAIN_FILE))'