Mercurial > mxe-octave
comparison src/build-gcc.mk @ 3210:8b10ade3efff
build-gcc.mk: don't generate pkg-config script for native builds
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 06 Aug 2013 14:04:16 -0400 |
parents | 96f2ec8172a1 |
children | ddb4cedc4289 |
comparison
equal
deleted
inserted
replaced
3209:360f71254066 | 3210:8b10ade3efff |
---|---|
60 $(MAKE) -C '$(1).build' -j 1 install | 60 $(MAKE) -C '$(1).build' -j 1 install |
61 mkdir -p $(TOP_DIR)/cross-tools/$(HOST_BINDIR) | 61 mkdir -p $(TOP_DIR)/cross-tools/$(HOST_BINDIR) |
62 $(MAKE) -C '$(1).build' -j 1 DESTDIR=$(TOP_DIR)/cross-tools install | 62 $(MAKE) -C '$(1).build' -j 1 DESTDIR=$(TOP_DIR)/cross-tools install |
63 | 63 |
64 # create pkg-config script | 64 # create pkg-config script |
65 (echo '#!/bin/sh'; \ | 65 if [ '$(MXE_NATIVE_BUILD)' = 'no' ]; then \ |
66 echo 'PKG_CONFIG_PATH="$$PKG_CONFIG_PATH_$(subst -,_,$(TARGET))" PKG_CONFIG_LIBDIR='\''$(HOST_LIBDIR)/pkgconfig'\'' exec pkg-config $($(PKG)_STATIC_FLAG) "$$@"') \ | 66 (echo '#!/bin/sh'; \ |
67 > '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)pkg-config' | 67 echo 'PKG_CONFIG_PATH="$$PKG_CONFIG_PATH_$(subst -,_,$(TARGET))" PKG_CONFIG_LIBDIR='\''$(HOST_LIBDIR)/pkgconfig'\'' exec pkg-config $($(PKG)_STATIC_FLAG) "$$@"') \ |
68 chmod 0755 '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)pkg-config' | 68 > '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)pkg-config'; \ |
69 chmod 0755 '$(BUILD_TOOLS_PREFIX)/bin/$(MXE_TOOL_PREFIX)pkg-config'; \ | |
70 fi | |
69 endef | 71 endef |
70 | 72 |