summaryrefslogtreecommitdiffstats
path: root/src/pire.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2015-09-21 09:39:07 (GMT)
committerTony Theodore <tonyt@logyst.com>2015-09-21 09:39:07 (GMT)
commit62d23ddec19b9eff2de06f9a632bd22a0e823553 (patch)
tree6893386cf48db3233b2e80b83189ffaf83383bb3 /src/pire.mk
parentb8e6addbcf3a98067bd2a2cffb0d6261b24b7607 (diff)
downloadmxe-62d23ddec19b9eff2de06f9a632bd22a0e823553.zip
mxe-62d23ddec19b9eff2de06f9a632bd22a0e823553.tar.gz
mxe-62d23ddec19b9eff2de06f9a632bd22a0e823553.tar.bz2
pire: fix shared build, build only libs and test program
Diffstat (limited to 'src/pire.mk')
-rw-r--r--src/pire.mk15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/pire.mk b/src/pire.mk
index 30d7f7f..ec7e7b9 100644
--- a/src/pire.mk
+++ b/src/pire.mk
@@ -11,11 +11,16 @@ $(PKG)_URL := https://github.com/yandex/pire/archive/release-$($(PKG)_VERSI
$(PKG)_DEPS := gcc
define $(PKG)_BUILD
- cd '$(1)' && autoreconf -fi -I'$(PREFIX)/$(TARGET)/share/aclocal'
- cd '$(1)' && ac_cv_func_malloc_0_nonnull=yes ./configure \
+ cd '$(1)' && autoreconf -fi
+ cd '$(1)' && ./configure \
$(MXE_CONFIGURE_OPTS) \
--enable-extra \
- PKG_CONFIG='$(PREFIX)/bin/$(TARGET)-pkg-config'
- $(MAKE) -C '$(1)' -j '$(JOBS)'
- $(MAKE) -C '$(1)' -j 1 install
+ ac_cv_func_malloc_0_nonnull=yes
+ $(MAKE) -C '$(1)/pire' -j '$(JOBS)' bin_PROGRAMS= LDFLAGS='-no-undefined'
+ $(MAKE) -C '$(1)/pire' -j 1 install bin_PROGRAMS=
+
+ '$(TARGET)-g++' \
+ -W -Wall -Werror \
+ '$(1)/samples/pigrep/pigrep.cpp' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
+ -lpire
endef