kumquat-buildroot/package/poco/poco-1.4.2p1-add-cross-build-config.patch

83 lines
2.0 KiB
Diff
Raw Normal View History

From: Baruch Siach <baruch@tkos.co.il>
Subject: [PATCH] poco: add Linux configuration file for generic cross build
This patch adds the Linux-CrossEnv config file to poco. This file is identical
to the Linux one, except the added CROSSENV variable that allows setting of
the toolchain prefix.
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
---
diff -Nuar poco-1.4.1p1-dist/build/config/Linux-CrossEnv poco-1.4.1p1/build/config/Linux-CrossEnv
--- poco-1.4.1p1-dist/build/config/Linux-CrossEnv 1970-01-01 02:00:00.000000000 +0200
+++ poco-1.4.1p1/build/config/Linux-CrossEnv 2011-08-02 18:51:03.682047719 +0300
@@ -0,0 +1,69 @@
+#
+# Linux
+#
+# Make settings for cross compiled Linux
+#
+#
+
+#
+# General Settings
+#
+LINKMODE ?= SHARED
+
+#
+# Define Tools
+#
+CC = $(CROSSENV)gcc
+CXX = $(CROSSENV)g++
+LINK = $(CXX)
+LIB = $(CROSSENV)ar -cr
+RANLIB = $(CROSSENV)ranlib
+SHLIB = $(CXX) -shared -Wl,-soname,$(notdir $@) -o $@
+SHLIBLN = $(POCO_BASE)/build/script/shlibln
+STRIP = $(CROSSENV)strip
+DEP = $(POCO_BASE)/build/script/makedepend.gcc
+SHELL = sh
+RM = rm -rf
+CP = cp
+MKDIR = mkdir -p
+
+#
+# Extension for Shared Libraries
+#
+SHAREDLIBEXT = .so.$(target_version)
+SHAREDLIBLINKEXT = .so
+
+#
+# Compiler and Linker Flags
+#
+CFLAGS =
+CFLAGS32 =
+CFLAGS64 =
+CXXFLAGS = -Wall -Wno-sign-compare
+CXXFLAGS32 =
+CXXFLAGS64 =
+LINKFLAGS =
+LINKFLAGS32 =
+LINKFLAGS64 =
+STATICOPT_CC =
+STATICOPT_CXX =
+STATICOPT_LINK = -static
+SHAREDOPT_CC = -fPIC
+SHAREDOPT_CXX = -fPIC
+SHAREDOPT_LINK = -Wl,-rpath,$(LIBPATH)
+DEBUGOPT_CC = -g -D_DEBUG
+DEBUGOPT_CXX = -g -D_DEBUG
+DEBUGOPT_LINK = -g
+RELEASEOPT_CC = -O2 -DNDEBUG
+RELEASEOPT_CXX = -O2 -DNDEBUG
+RELEASEOPT_LINK = -O2
+
+#
+# System Specific Flags
+#
+SYSFLAGS = -D_XOPEN_SOURCE=500 -D_REENTRANT -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPOCO_HAVE_FD_EPOLL
+
+#
+# System Specific Libraries
+#
+SYSLIBS = -lpthread -ldl -lrt