1 From: Baruch Siach <baruch@tkos.co.il>
2 Subject: [PATCH] poco: add Linux configuration file for generic cross build
4 This patch adds the Linux-CrossEnv config file to poco. This file is identical
5 to the Linux one, except the added CROSSENV variable that allows setting of
8 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
10 diff -Nuar poco-1.4.1p1-dist/build/config/Linux-CrossEnv poco-1.4.1p1/build/config/Linux-CrossEnv
11 --- poco-1.4.1p1-dist/build/config/Linux-CrossEnv 1970-01-01 02:00:00.000000000 +0200
12 +++ poco-1.4.1p1/build/config/Linux-CrossEnv 2011-08-02 18:51:03.682047719 +0300
17 +# Make settings for cross compiled Linux
32 +LIB = $(CROSSENV)ar -cr
33 +RANLIB = $(CROSSENV)ranlib
34 +SHLIB = $(CXX) -shared -Wl,-soname,$(notdir $@) -o $@
35 +SHLIBLN = $(POCO_BASE)/build/script/shlibln
36 +STRIP = $(CROSSENV)strip
37 +DEP = $(POCO_BASE)/build/script/makedepend.gcc
44 +# Extension for Shared Libraries
46 +SHAREDLIBEXT = .so.$(target_version)
47 +SHAREDLIBLINKEXT = .so
50 +# Compiler and Linker Flags
55 +CXXFLAGS = -Wall -Wno-sign-compare
63 +STATICOPT_LINK = -static
65 +SHAREDOPT_CXX = -fPIC
66 +SHAREDOPT_LINK = -Wl,-rpath,$(LIBPATH)
67 +DEBUGOPT_CC = -g -D_DEBUG
68 +DEBUGOPT_CXX = -g -D_DEBUG
70 +RELEASEOPT_CC = -O2 -DNDEBUG
71 +RELEASEOPT_CXX = -O2 -DNDEBUG
72 +RELEASEOPT_LINK = -O2
75 +# System Specific Flags
77 +SYSFLAGS = -D_XOPEN_SOURCE=500 -D_REENTRANT -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPOCO_HAVE_FD_EPOLL
80 +# System Specific Libraries
82 +SYSLIBS = -lpthread -ldl -lrt