• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/poco/poco-add-cross-build-config.patch
Baruch SiachBaruch Siach committed 56994e16ac913 Oct 2012
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From: Baruch Siach <baruch@tkos.co.il>
2
Subject: [PATCH] poco: add Linux configuration file for generic cross build
3
​
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.
7
​
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 @@
14
+#
15
+# Linux
16
+#
17
+# Make settings for cross compiled Linux
18
+#
19
+#
20
+
21
+#
22
+# General Settings
23
+#
24
+LINKMODE ?= SHARED
25
+
26
+#
27
+# Define Tools
28
+#
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
42
+
43
+#
44
+# Extension for Shared Libraries
45
+#
46
+SHAREDLIBEXT     = .so.$(target_version)
47
+SHAREDLIBLINKEXT = .so
48
+
49
+#
50
+# Compiler and Linker Flags
51
+#
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
73
+
74
+#
75
+# System Specific Flags
76
+#
77
+SYSFLAGS = -D_XOPEN_SOURCE=500 -D_REENTRANT -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPOCO_HAVE_FD_EPOLL
78
+
79
+#
80
+# System Specific Libraries
81
+#
82
+SYSLIBS  = -lpthread -ldl -lrt
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.