poco: Use system zlib etc. and enable on i686-w64-mingw32

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
pull/504/head
Timothy Gu 10 years ago
parent c28b3ea9bc
commit f29c8cafc3

@ -0,0 +1,24 @@
This file is part of MXE.
See index.html for further information.
From 329b3a3ebbcd2ee03e3f0e21cd929dd54fffcac3 Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Mon, 8 Sep 2014 16:52:55 -0700
Subject: [PATCH] configure: Define POCO_STATIC when --static is requested
diff --git a/configure b/configure
index 1d93337..87f189e 100755
--- a/configure
+++ b/configure
@@ -189,6 +189,7 @@ while [ "$1" != "" ] ; do
if [ "$1" = "--static" ] ; then
static=1
+ flags="$flags -DPOCO_STATIC"
fi
if [ "$1" = "--shared" ] ; then
--
1.8.3.2

@ -8,7 +8,7 @@ $(PKG)_CHECKSUM := 90042349faf1790b5167bad0e84e1713bfd46046
$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $($(PKG)_SUBDIR).tar.gz
$(PKG)_URL := http://pocoproject.org/releases/$(PKG)-$(word 1,$(subst p, ,$($(PKG)_VERSION)))/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
$(PKG)_DEPS := gcc expat openssl pcre sqlite zlib
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://pocoproject.org/download/' | \
@ -20,16 +20,15 @@ define $(PKG)_BUILD
cd '$(1)' && ./configure \
--config=MinGW-CrossEnv \
--static \
--unbundled \
--prefix='$(PREFIX)/$(TARGET)'
$(MAKE) -C '$(1)' -j '$(JOBS)' install CROSSENV=$(TARGET)
'$(TARGET)-g++' \
-W -Wall -Werror -ansi -pedantic \
-W -Wall -Werror -ansi -pedantic -DPOCO_STATIC=1 \
'$(2).cpp' -o '$(PREFIX)/$(TARGET)/bin/test-poco.exe' \
-lPocoFoundation
endef
$(PKG)_BUILD_x86_64-w64-mingw32 =
$(PKG)_BUILD_i686-w64-mingw32 =
$(PKG)_BUILD_SHARED =

Loading…
Cancel
Save