poco: Add POCO_STATIC to Config.h when building static

This allows easier integration with user applications.

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
This commit is contained in:
Timothy Gu 2014-09-08 17:45:56 -07:00
parent f29c8cafc3
commit 36bb467c87
2 changed files with 30 additions and 0 deletions

View File

@ -22,3 +22,30 @@ index 1d93337..87f189e 100755
--
1.8.3.2
From 0b88c734bfae5cc4ac65de7cb903124cca62b8a5 Mon Sep 17 00:00:00 2001
From: Timothy Gu <timothygu99@gmail.com>
Date: Mon, 8 Sep 2014 17:09:19 -0700
Subject: [PATCH] Config.h: Add prototype for POCO_STATIC
---
Foundation/include/Poco/Config.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Foundation/include/Poco/Config.h b/Foundation/include/Poco/Config.h
index c4c5b83..8d29273 100644
--- a/Foundation/include/Poco/Config.h
+++ b/Foundation/include/Poco/Config.h
@@ -48,6 +48,10 @@
// #define POCO_NO_AUTOMATIC_LIBS
+// Define on Windows for static linking
+// #define POCO_STATIC
+
+
// Define to disable FPEnvironment support
// #define POCO_NO_FPENVIRONMENT
--
1.8.3.2

View File

@ -22,6 +22,9 @@ define $(PKG)_BUILD
--static \
--unbundled \
--prefix='$(PREFIX)/$(TARGET)'
$(if $(BUILD_STATIC), \
$(SED) -i 's:// #define POCO_STATIC:#define POCO_STATIC:' \
'$(1)/Foundation/include/Poco/Config.h')
$(MAKE) -C '$(1)' -j '$(JOBS)' install CROSSENV=$(TARGET)
'$(TARGET)-g++' \