summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2019-04-24 13:25:24 (GMT)
committerTony Theodore <tonyt@logyst.com>2019-04-24 13:25:24 (GMT)
commitb1fc38f29c67050cbdb242c2c21b30abd0d89c57 (patch)
tree8df6c2a9bcd4e2e8a62113c811d26079af17d1b7
parentc721e81cbecc0f9e5ee583ad2b8ff0ae1ad97efa (diff)
downloadmxe-b1fc38f29c67050cbdb242c2c21b30abd0d89c57.zip
mxe-b1fc38f29c67050cbdb242c2c21b30abd0d89c57.tar.gz
mxe-b1fc38f29c67050cbdb242c2c21b30abd0d89c57.tar.bz2
libgpg_error: use SOURCE_DIR and BUILD_DIR
-rw-r--r--src/libgpg_error.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libgpg_error.mk b/src/libgpg_error.mk
index c755574..691f898 100644
--- a/src/libgpg_error.mk
+++ b/src/libgpg_error.mk
@@ -19,14 +19,14 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
- cd '$(1)/src/syscfg' && ln -s lock-obj-pub.mingw32.h lock-obj-pub.mingw32.$(call merge,.,$(call rest,$(call split,.,$(TARGET)))).h
- cd '$(1)' && ./configure \
+ cd '$(SOURCE_DIR)/src/syscfg' && ln -s lock-obj-pub.mingw32.h lock-obj-pub.mingw32.$(call merge,.,$(call rest,$(call split,.,$(TARGET)))).h
+ cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
$(MXE_CONFIGURE_OPTS) \
--disable-nls \
--disable-languages
- $(SED) -i 's/host_os = mingw32.*/host_os = mingw32/' '$(1)/src/Makefile'
- $(MAKE) -C '$(1)/src' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
- $(SED) -i 's/-lgpg-error/-lgpg-error -lintl -liconv -lws2_32/;' '$(1)/src/gpg-error-config'
- $(MAKE) -C '$(1)/src' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+ $(SED) -i 's/host_os = mingw32.*/host_os = mingw32/' '$(BUILD_DIR)/src/Makefile'
+ $(MAKE) -C '$(BUILD_DIR)/src' -j '$(JOBS)' bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+ $(SED) -i 's/-lgpg-error/-lgpg-error -lintl -liconv -lws2_32/;' '$(BUILD_DIR)/src/gpg-error-config'
+ $(MAKE) -C '$(BUILD_DIR)/src' -j 1 install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
ln -sf '$(PREFIX)/$(TARGET)/bin/gpg-error-config' '$(PREFIX)/bin/$(TARGET)-gpg-error-config'
endef