open-plc-utils: new package
[buildroot-gz.git] / package / poco / 0002-add-cross-build-config.patch
bloba08783833bb1b9b4ea33925faaadfbe8d15427ca
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
6 the toolchain prefix.
8 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
9 ---
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
13 @@ -0,0 +1,69 @@
15 +# Linux
17 +# Make settings for cross compiled Linux
22 +# General Settings
24 +LINKMODE ?= SHARED
27 +# Define Tools
29 +CC = $(CROSSENV)gcc
30 +CXX = $(CROSSENV)g++
31 +LINK = $(CXX)
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
38 +SHELL = sh
39 +RM = rm -rf
40 +CP = cp
41 +MKDIR = mkdir -p
44 +# Extension for Shared Libraries
46 +SHAREDLIBEXT = .so.$(target_version)
47 +SHAREDLIBLINKEXT = .so
50 +# Compiler and Linker Flags
52 +CFLAGS =
53 +CFLAGS32 =
54 +CFLAGS64 =
55 +CXXFLAGS = -Wall -Wno-sign-compare
56 +CXXFLAGS32 =
57 +CXXFLAGS64 =
58 +LINKFLAGS =
59 +LINKFLAGS32 =
60 +LINKFLAGS64 =
61 +STATICOPT_CC =
62 +STATICOPT_CXX =
63 +STATICOPT_LINK = -static
64 +SHAREDOPT_CC = -fPIC
65 +SHAREDOPT_CXX = -fPIC
66 +SHAREDOPT_LINK = -Wl,-rpath,$(LIBPATH)
67 +DEBUGOPT_CC = -g -D_DEBUG
68 +DEBUGOPT_CXX = -g -D_DEBUG
69 +DEBUGOPT_LINK = -g
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