2012-04-23 03:14:34 +02:00
|
|
|
#
|
2016-10-07 22:09:36 +02:00
|
|
|
# Yocto
|
|
|
|
#
|
|
|
|
# Make settings for Linux/GCC ARM
|
2012-04-23 03:14:34 +02:00
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# General Settings
|
|
|
|
#
|
2016-10-07 22:09:36 +02:00
|
|
|
LINKMODE ?= SHARED
|
|
|
|
TOOL ?= arm-linux
|
|
|
|
POCO_TARGET_OSNAME = Linux
|
|
|
|
POCO_TARGET_OSARCH ?= armv7l
|
2021-06-17 12:09:49 +02:00
|
|
|
ARCHFLAGS ?=
|
2012-04-23 03:14:34 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Define Tools
|
|
|
|
#
|
|
|
|
CC = $(TOOL)-gcc
|
|
|
|
CXX = $(TOOL)-g++
|
|
|
|
LINK = $(CXX)
|
|
|
|
LIB = $(TOOL)-ar -cr
|
|
|
|
RANLIB = $(TOOL)-ranlib
|
|
|
|
SHLIB = $(CXX) -shared -Wl,-soname,$(notdir $@) -o $@
|
|
|
|
SHLIBLN = $(POCO_BASE)/build/script/shlibln
|
|
|
|
STRIP = $(TOOL)-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
|
|
|
|
#
|
2021-06-17 12:09:49 +02:00
|
|
|
CFLAGS = -std=c11 $(ARCHFLAGS)
|
2012-04-23 03:14:34 +02:00
|
|
|
CFLAGS32 =
|
|
|
|
CFLAGS64 =
|
gcc/clang (-fvisibility=hidden): corrections to compile and work properly (#4394)
* fix(ActiveRecord): missing ActiveRecordLib_API definitions for clang/gcc.
* fix(FPEnvironment): export FPEnvironmentImpl classes (#4393, #3331)
* fix(Crypto): export *Impl classes used from inlines (#4393, #3331)
* fix(Dynamic): explicitly instantiate and export Dynamic::Struct for string and int (-fvisibility=hidden) (#4393, #3331)
* fix(JSON): explicitly instantiate and export SharedPtr for JSON::Array and JSON::Object (-fvisibility=hidden) (#4393, #3331)
* enh(CMake): Set symbol visibility to hidden (#4393, #3331)
* enh(configure): user c++17 standard for iphone, Darwin and ARM-Linux.
* fix(UTF): explicitly instantiate and export 16 and 32-bit strings (-fvisibility=hidden) (#4393, #3331)
* fix(RecordSet): make Extraction.h internal and instantiate RecordsSet::column template functions only for supported types. (-fvisibility=hidden) (#4393, #3331)
* fix(UTF): fix explicitly instantiation on Windows (-fvisibility=hidden) (#4393, #3331)
* enh(CMake): Add github jobs for macOS with visibility set to hidden (#4393, #3331)
* fix(CppParser): Add missing declarations for CppParser_API (#4393, #3331)
* enh(CMake): Enable more options in github jobs for macOS with visibility set to hidden (#4393, #3331)
* fix(MongoDB): Add missing MongoDB_API (#4393, #3331)
2024-01-17 14:13:24 +01:00
|
|
|
CXXFLAGS = -std=c++17 -Wall -Wno-sign-compare -Wno-psabi $(ARCHFLAGS)
|
2012-04-23 03:14:34 +02:00
|
|
|
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
|
|
|
|
#
|
2017-02-12 13:28:13 +01:00
|
|
|
SYSFLAGS = -D_XOPEN_SOURCE=600 -D_REENTRANT -D_THREAD_SAFE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -DPOCO_HAVE_FD_EPOLL \
|
2016-10-07 22:09:36 +02:00
|
|
|
-DPOCO_HAVE_ADDRINFO -DPOCO_HAVE_LIBRESOLV
|
2012-04-23 03:14:34 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# System Specific Libraries
|
|
|
|
#
|
2016-10-07 22:09:36 +02:00
|
|
|
SYSLIBS = -lpthread -ldl -lrt
|