mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-03 07:52:29 +02:00
fixed GH #1536: Building with OS X 10.12 SDK and 10.7 deployment target without libc++ fails
This commit is contained in:
parent
0f5853c057
commit
f42f17dd65
@ -24,7 +24,7 @@
|
|||||||
#if POCO_OS == POCO_OS_WINDOWS_NT
|
#if POCO_OS == POCO_OS_WINDOWS_NT
|
||||||
#include "Poco/UnWindows.h"
|
#include "Poco/UnWindows.h"
|
||||||
#elif POCO_OS == POCO_OS_MAC_OS_X
|
#elif POCO_OS == POCO_OS_MAC_OS_X
|
||||||
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_10_12 || __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_10_0 || __TV_OS_VERSION_MAX_ALLOWED >= __TVOS_10_0 || __WATCH_OS_VERSION_MAX_ALLOWED >= __WATCHOS_3_0
|
#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101200 || __IPHONE_OS_VERSION_MAX_ALLOWED >= 100000 || __TV_OS_VERSION_MAX_ALLOWED >= 100000 || __WATCH_OS_VERSION_MAX_ALLOWED >= 30000
|
||||||
#ifndef POCO_HAVE_STD_ATOMICS
|
#ifndef POCO_HAVE_STD_ATOMICS
|
||||||
#define POCO_HAVE_STD_ATOMICS
|
#define POCO_HAVE_STD_ATOMICS
|
||||||
#endif
|
#endif
|
||||||
|
@ -90,7 +90,7 @@ RELEASEOPT_LINK =
|
|||||||
#
|
#
|
||||||
# System Specific Flags
|
# System Specific Flags
|
||||||
#
|
#
|
||||||
SYSFLAGS = -DPOCO_HAVE_IPv6 -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_STAT64 -DPOCO_NO_SHAREDLIBS -DPOCO_NO_NET_IFTYPES -DPOCO_NO_FORK_EXEC
|
SYSFLAGS = -DPOCO_HAVE_IPv6 -DPOCO_SOCKETADDRESS_DONT_PREFER_IPV4 -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_STAT64 -DPOCO_NO_SHAREDLIBS -DPOCO_NO_NET_IFTYPES -DPOCO_NO_FORK_EXEC
|
||||||
|
|
||||||
#
|
#
|
||||||
# System Specific Libraries
|
# System Specific Libraries
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
#
|
#
|
||||||
# $Id
|
# $Id$
|
||||||
#
|
#
|
||||||
# Darwin
|
# Darwin
|
||||||
#
|
#
|
||||||
# Build settings for Mac OS X 10.8 or later, clang, 64-bits, with C++11 support.
|
# Build settings for Mac OS X 10.9 (clang++, libc++, x86_64)
|
||||||
# Build settings are compatible with XCode 7 C++ projects.
|
# The build settings defined in this file are compatible
|
||||||
|
# with XCode C++ projects.
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(POCO_BASE)/build/config/Darwin-clang
|
include $(POCO_BASE)/build/config/Darwin-clang-libc++
|
||||||
|
@ -3,8 +3,10 @@
|
|||||||
#
|
#
|
||||||
# Darwin-clang
|
# Darwin-clang
|
||||||
#
|
#
|
||||||
# Build settings for Mac OS X 10.8 or later, clang, 64-bits, with C++11 support.
|
# Build settings for Mac OS X 10.7 (clang, libstdc++, x86_64)
|
||||||
# Build settings are compatible with XCode 7 C++ projects.
|
#
|
||||||
|
# NOTE: This build configuration will build 64-bit binaries.
|
||||||
|
# Use the Darwin32-clang build configuration to build 32-bit binaries.
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -14,9 +16,10 @@ LINKMODE ?= SHARED
|
|||||||
|
|
||||||
POCO_TARGET_OSARCH ?= x86_64
|
POCO_TARGET_OSARCH ?= x86_64
|
||||||
POCO_HOST_OSARCH := $(POCO_TARGET_OSARCH)
|
POCO_HOST_OSARCH := $(POCO_TARGET_OSARCH)
|
||||||
ARCHFLAGS ?= -arch $(POCO_TARGET_OSARCH)
|
ARCHFLAGS ?= -arch $(POCO_TARGET_OSARCH)
|
||||||
|
OSFLAGS ?= -mmacosx-version-min=10.7
|
||||||
|
|
||||||
OPENSSL_DIR ?= /usr/local/opt/openssl/
|
OPENSSL_DIR ?= /usr/local/opt/openssl
|
||||||
|
|
||||||
ifeq ($(POCO_TARGET_OSARCH),i386)
|
ifeq ($(POCO_TARGET_OSARCH),i386)
|
||||||
RORELOCS = -read_only_relocs suppress
|
RORELOCS = -read_only_relocs suppress
|
||||||
@ -49,11 +52,11 @@ SHAREDLIBLINKEXT = .dylib
|
|||||||
#
|
#
|
||||||
# Compiler and Linker Flags
|
# Compiler and Linker Flags
|
||||||
#
|
#
|
||||||
CFLAGS = $(ARCHFLAGS)
|
CFLAGS = $(ARCHFLAGS) $(OSFLAGS)
|
||||||
CXXFLAGS = $(ARCHFLAGS) -std=c++11 -stdlib=libc++ -Wall -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-unneeded-internal-declaration
|
CXXFLAGS = $(ARCHFLAGS) $(OSFLAGS) -std=c++03 -stdlib=libstdc++ -Wall -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-unneeded-internal-declaration
|
||||||
LINKFLAGS = $(ARCHFLAGS) -stdlib=libc++
|
LINKFLAGS = $(ARCHFLAGS) $(OSFLAGS) -stdlib=libstdc++
|
||||||
SHLIBFLAGS = $(ARCHFLAGS) -stdlib=libc++
|
SHLIBFLAGS = $(ARCHFLAGS) $(OSFLAGS) -stdlib=libstdc++
|
||||||
DYLIBFLAGS = $(ARCHFLAGS) -stdlib=libc++
|
DYLIBFLAGS = $(ARCHFLAGS) $(OSFLAGS) -stdlib=libstdc++
|
||||||
STATICOPT_CC =
|
STATICOPT_CC =
|
||||||
STATICOPT_CXX =
|
STATICOPT_CXX =
|
||||||
STATICOPT_LINK =
|
STATICOPT_LINK =
|
||||||
@ -75,4 +78,4 @@ SYSFLAGS = -DPOCO_HAVE_IPv6 -DPOCO_NO_STAT64 -I$(OPENSSL_DIR)/include
|
|||||||
#
|
#
|
||||||
# System Specific Libraries
|
# System Specific Libraries
|
||||||
#
|
#
|
||||||
SYSLIBS = -L$(OPENSSL_DIR)/lib -ldl
|
SYSLIBS = -L$(OPENSSL_DIR)/lib -ldl
|
||||||
|
@ -3,10 +3,81 @@
|
|||||||
#
|
#
|
||||||
# Darwin-clang-libc++
|
# Darwin-clang-libc++
|
||||||
#
|
#
|
||||||
# Build settings for Mac OS X 10.8 or later, clang, 64-bits, with C++11 support.
|
# Build settings for Mac OS X 10.9 (clang, libc++, x86_64)
|
||||||
# Build settings are compatible with XCode 7 C++ projects.
|
# The build settings defined in this file are compatible
|
||||||
#
|
# with XCode C++ projects.
|
||||||
# Note: provided for backwards compatibility.
|
#
|
||||||
|
# NOTE: This build configuration will build 64-bit binaries.
|
||||||
|
# Use the Darwin32-clang-libc++ build configuration to build 32-bit binaries.
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(POCO_BASE)/build/config/Darwin-clang
|
#
|
||||||
|
# General Settings
|
||||||
|
#
|
||||||
|
LINKMODE ?= SHARED
|
||||||
|
|
||||||
|
POCO_TARGET_OSARCH ?= x86_64
|
||||||
|
POCO_HOST_OSARCH := $(POCO_TARGET_OSARCH)
|
||||||
|
ARCHFLAGS ?= -arch $(POCO_TARGET_OSARCH)
|
||||||
|
OSFLAGS ?= -mmacosx-version-min=10.9
|
||||||
|
|
||||||
|
OPENSSL_DIR ?= /usr/local/opt/openssl
|
||||||
|
|
||||||
|
ifeq ($(POCO_TARGET_OSARCH),i386)
|
||||||
|
RORELOCS = -read_only_relocs suppress
|
||||||
|
endif
|
||||||
|
|
||||||
|
#
|
||||||
|
# Tools
|
||||||
|
#
|
||||||
|
CC = $(shell xcrun -find clang)
|
||||||
|
CXX = $(shell xcrun -find clang++)
|
||||||
|
LINK = $(CXX) -bind_at_load
|
||||||
|
LIB = libtool -static -o
|
||||||
|
RANLIB = ranlib
|
||||||
|
SHLIB = $(CXX) -dynamiclib -Wl,-install_name,$(POCO_LIB_INSTALLDIR)/$(notdir \$@) -o $@
|
||||||
|
DYLIB = $(CXX) -dynamic -bundle $(RORELOCS) -Wl,-bind_at_load -o $@
|
||||||
|
SHLIBLN = $(POCO_BASE)/build/script/shlibln
|
||||||
|
STRIP =
|
||||||
|
DEP = $(POCO_BASE)/build/script/makedepend.clang
|
||||||
|
SHELL = sh
|
||||||
|
RM = rm -rf
|
||||||
|
CP = cp
|
||||||
|
MKDIR = mkdir -p
|
||||||
|
|
||||||
|
#
|
||||||
|
# Extension for Shared Libraries
|
||||||
|
#
|
||||||
|
SHAREDLIBEXT = .$(target_version).dylib
|
||||||
|
SHAREDLIBLINKEXT = .dylib
|
||||||
|
|
||||||
|
#
|
||||||
|
# Compiler and Linker Flags
|
||||||
|
#
|
||||||
|
CFLAGS = $(ARCHFLAGS) $(OSFLAGS)
|
||||||
|
CXXFLAGS = $(ARCHFLAGS) $(OSFLAGS) -std=c++11 -stdlib=libc++ -Wall -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-unneeded-internal-declaration
|
||||||
|
LINKFLAGS = $(ARCHFLAGS) $(OSFLAGS) -stdlib=libc++
|
||||||
|
SHLIBFLAGS = $(ARCHFLAGS) $(OSFLAGS) -stdlib=libc++
|
||||||
|
DYLIBFLAGS = $(ARCHFLAGS) $(OSFLAGS) -stdlib=libc++
|
||||||
|
STATICOPT_CC =
|
||||||
|
STATICOPT_CXX =
|
||||||
|
STATICOPT_LINK =
|
||||||
|
SHAREDOPT_CC = -fPIC
|
||||||
|
SHAREDOPT_CXX = -fPIC
|
||||||
|
SHAREDOPT_LINK =
|
||||||
|
DEBUGOPT_CC = -O0 -g -gdwarf-2 -fasm-blocks -D_DEBUG=$(DEBUGLEVEL)
|
||||||
|
DEBUGOPT_CXX = -O0 -g -gdwarf-2 -fasm-blocks -D_DEBUG=$(DEBUGLEVEL)
|
||||||
|
DEBUGOPT_LINK =
|
||||||
|
RELEASEOPT_CC = -DNDEBUG -Os -fasm-blocks
|
||||||
|
RELEASEOPT_CXX = -DNDEBUG -O2 -fasm-blocks
|
||||||
|
RELEASEOPT_LINK =
|
||||||
|
|
||||||
|
#
|
||||||
|
# System Specific Flags
|
||||||
|
#
|
||||||
|
SYSFLAGS = -DPOCO_HAVE_IPv6 -DPOCO_NO_STAT64 -I$(OPENSSL_DIR)/include
|
||||||
|
|
||||||
|
#
|
||||||
|
# System Specific Libraries
|
||||||
|
#
|
||||||
|
SYSLIBS = -L$(OPENSSL_DIR)/lib -ldl
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
#
|
#
|
||||||
# $Id
|
# $Id$
|
||||||
#
|
#
|
||||||
# Darwin32
|
# Darwin32
|
||||||
#
|
#
|
||||||
# Build settings for Mac OS X 10.8 or later, clang, 32-bits, with C++11 support.
|
# Build settings for Mac OS X 10.9 (clang, libc++, i386)
|
||||||
# Build settings are compatible with XCode 7 C++ projects.
|
# The build settings defined in this file are compatible
|
||||||
|
# with XCode C++ projects.
|
||||||
#
|
#
|
||||||
|
|
||||||
ARCHFLAGS = -arch i386
|
ARCHFLAGS = -arch i386
|
||||||
POCO_TARGET_OSARCH = i386
|
POCO_TARGET_OSARCH = i386
|
||||||
|
|
||||||
include $(POCO_BASE)/build/config/Darwin-clang
|
include $(POCO_BASE)/build/config/Darwin-clang-libc++
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
#
|
#
|
||||||
# Darwin32-clang
|
# Darwin32-clang
|
||||||
#
|
#
|
||||||
# Build settings for Mac OS X 10.8 or later, clang, 32-bits, with C++11 support.
|
# Build settings for Mac OS X 10.7 (clang, libstdc++, i386)
|
||||||
# Build settings are compatible with XCode 7 C++ projects.
|
|
||||||
#
|
#
|
||||||
|
|
||||||
ARCHFLAGS = -arch i386
|
ARCHFLAGS = -arch i386
|
||||||
|
@ -3,13 +3,12 @@
|
|||||||
#
|
#
|
||||||
# Darwin32-clang-libc++
|
# Darwin32-clang-libc++
|
||||||
#
|
#
|
||||||
# Build settings for Mac OS X 10.8 or later, clang, 32-bits, with C++11 support.
|
# Build settings for Mac OS X 10.9 (clang, libc++, i386)
|
||||||
# Build settings are compatible with XCode 7 C++ projects.
|
# The build settings defined in this file are compatible
|
||||||
#
|
# with XCode C++ projects.
|
||||||
# Note: provided for backwards compatibility.
|
#
|
||||||
#
|
|
||||||
|
|
||||||
ARCHFLAGS = -arch i386
|
ARCHFLAGS = -arch i386
|
||||||
POCO_TARGET_OSARCH = i386
|
POCO_TARGET_OSARCH = i386
|
||||||
|
|
||||||
include $(POCO_BASE)/build/config/Darwin-clang
|
include $(POCO_BASE)/build/config/Darwin-clang-libc++
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
#
|
#
|
||||||
# $Id
|
# $Id$
|
||||||
#
|
#
|
||||||
# Darwin64
|
# Darwin64
|
||||||
#
|
#
|
||||||
# Build settings for Mac OS X 10.8 or later, clang, 64-bits, with C++11 support.
|
# Build settings for Mac OS X 10.9 (clang, libc++, x86_64)
|
||||||
# Build settings are compatible with XCode 7 C++ projects.
|
# The build settings defined in this file are compatible
|
||||||
|
# with XCode C++ projects.
|
||||||
#
|
#
|
||||||
|
|
||||||
ARCHFLAGS = -arch x86_64
|
ARCHFLAGS = -arch x86_64
|
||||||
POCO_TARGET_OSARCH = x86_64
|
POCO_TARGET_OSARCH = x86_64
|
||||||
|
|
||||||
include $(POCO_BASE)/build/config/Darwin-clang
|
include $(POCO_BASE)/build/config/Darwin-clang-libc++
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
#
|
#
|
||||||
# Darwin64-clang
|
# Darwin64-clang
|
||||||
#
|
#
|
||||||
# Build settings for Mac OS X 10.8 or later, clang, 64-bits, with C++11 support.
|
# Build settings for Mac OS X 10.7 (clang, libstdc++, x86_64)
|
||||||
# Build settings are compatible with XCode 7 C++ projects.
|
|
||||||
#
|
#
|
||||||
|
|
||||||
ARCHFLAGS = -arch x86_64
|
ARCHFLAGS = -arch x86_64
|
||||||
|
@ -3,13 +3,12 @@
|
|||||||
#
|
#
|
||||||
# Darwin64-clang-libc++
|
# Darwin64-clang-libc++
|
||||||
#
|
#
|
||||||
# Build settings for Mac OS X 10.8 or later, clang, 64-bits, with C++11 support.
|
# Build settings for Mac OS X 10.9 (clang, libc++, x86_64)
|
||||||
# Build settings are compatible with XCode 7 C++ projects.
|
# The build settings defined in this file are compatible
|
||||||
#
|
# with XCode C++ projects.
|
||||||
# Note: provided for backwards compatibility.
|
#
|
||||||
#
|
|
||||||
|
|
||||||
ARCHFLAGS = -arch x86_64
|
ARCHFLAGS = -arch x86_64
|
||||||
POCO_TARGET_OSARCH = x86_64
|
POCO_TARGET_OSARCH = x86_64
|
||||||
|
|
||||||
include $(POCO_BASE)/build/config/Darwin-clang
|
include $(POCO_BASE)/build/config/Darwin-clang-libc++
|
||||||
|
@ -90,7 +90,7 @@ RELEASEOPT_LINK =
|
|||||||
#
|
#
|
||||||
# System Specific Flags
|
# System Specific Flags
|
||||||
#
|
#
|
||||||
SYSFLAGS = -DPOCO_HAVE_IPv6 -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_STAT64 -DPOCO_NO_SHAREDLIBS -DPOCO_NO_NET_IFTYPES -DPOCO_NO_FORK_EXEC
|
SYSFLAGS = -DPOCO_HAVE_IPv6 -DPOCO_SOCKETADDRESS_DONT_PREFER_IPV4 -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_STAT64 -DPOCO_NO_SHAREDLIBS -DPOCO_NO_NET_IFTYPES -DPOCO_NO_FORK_EXEC
|
||||||
|
|
||||||
#
|
#
|
||||||
# System Specific Libraries
|
# System Specific Libraries
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# $Id: //poco/1.4/build/config/iPhone#4 $
|
# $Id: //poco/1.4/build/config/iPhone#2 $
|
||||||
#
|
#
|
||||||
# iPhone
|
# iPhone
|
||||||
#
|
#
|
||||||
@ -23,22 +23,23 @@ LINKMODE ?= STATIC
|
|||||||
# Otherwise use the version found.
|
# Otherwise use the version found.
|
||||||
|
|
||||||
IPHONE_SDK ?= iPhoneOS
|
IPHONE_SDK ?= iPhoneOS
|
||||||
IPHONE_SDK_ROOT = $(shell xcode-select -print-path)/Platforms/$(IPHONE_SDK).platform/Developer/SDKs
|
IPHONE_SDK_ROOT ?= $(shell xcode-select -print-path)/Platforms/$(IPHONE_SDK).platform/Developer/SDKs
|
||||||
IPHONE_SDK_ROOT_DIR = $(IPHONE_SDK_ROOT)/$(IPHONE_SDK)
|
IPHONE_SDK_ROOT_DIR = $(IPHONE_SDK_ROOT)/$(IPHONE_SDK)
|
||||||
IPHONE_SDK_BASE = $(shell ls -d $(IPHONE_SDK_ROOT_DIR)$(IPHONE_SDK_VERSION)*.sdk | tail -1)
|
IPHONE_SDK_BASE = $(shell ls -d $(IPHONE_SDK_ROOT_DIR)$(IPHONE_SDK_VERSION)*.sdk | tail -1)
|
||||||
IPHONE_SDK_VERSION_MIN ?= $(patsubst %.sdk,%,$(patsubst $(IPHONE_SDK_ROOT_DIR)%,%,$(IPHONE_SDK_BASE)))
|
IPHONE_SDK_VERSION_MIN ?= $(patsubst %.sdk,%,$(patsubst $(IPHONE_SDK_ROOT_DIR)%,%,$(IPHONE_SDK_BASE)))
|
||||||
|
|
||||||
POCO_TARGET_OSNAME ?= $(IPHONE_SDK)
|
POCO_TARGET_OSNAME ?= $(IPHONE_SDK)
|
||||||
POCO_TARGET_OSARCH ?= armv6
|
POCO_TARGET_OSARCH ?= arm64
|
||||||
TOOL_PREFIX ?= $(shell xcode-select -print-path)/Platforms/$(IPHONE_SDK).platform/Developer/usr/bin
|
TOOL_PREFIX ?= $(shell xcode-select -print-path)/Platforms/$(IPHONE_SDK).platform/Developer/usr/bin
|
||||||
OSFLAGS ?= -arch $(POCO_TARGET_OSARCH) -isysroot $(IPHONE_SDK_BASE) -mthumb -miphoneos-version-min=$(IPHONE_SDK_VERSION_MIN) -fembed-bitcode
|
ifneq ($(POCO_TARGET_OSARCH),arm64)
|
||||||
|
THUMB = -mthumb
|
||||||
|
endif
|
||||||
|
OSFLAGS ?= -arch $(POCO_TARGET_OSARCH) -isysroot $(IPHONE_SDK_BASE) $(THUMB) -miphoneos-version-min=$(IPHONE_SDK_VERSION_MIN) -fembed-bitcode
|
||||||
|
|
||||||
#
|
#
|
||||||
# Tools
|
# Tools
|
||||||
#
|
#
|
||||||
# If GCC_VER is defined then use it.
|
|
||||||
# Otherwise select the latest version
|
|
||||||
#
|
|
||||||
CC = $(shell xcrun -find clang)
|
CC = $(shell xcrun -find clang)
|
||||||
CXX = $(shell xcrun -find clang++)
|
CXX = $(shell xcrun -find clang++)
|
||||||
|
|
||||||
@ -67,10 +68,10 @@ SHAREDLIBLINKEXT = .dylib
|
|||||||
CFLAGS = $(OSFLAGS)
|
CFLAGS = $(OSFLAGS)
|
||||||
CFLAGS32 =
|
CFLAGS32 =
|
||||||
CFLAGS64 =
|
CFLAGS64 =
|
||||||
CXXFLAGS = $(OSFLAGS) -Wall -Wno-sign-compare
|
CXXFLAGS = $(OSFLAGS) -std=gnu++11 -stdlib=libc++ -Wall -Wno-sign-compare
|
||||||
CXXFLAGS32 =
|
CXXFLAGS32 =
|
||||||
CXXFLAGS64 =
|
CXXFLAGS64 =
|
||||||
LINKFLAGS = $(OSFLAGS)
|
LINKFLAGS = $(OSFLAGS) -stdlib=libc++
|
||||||
LINKFLAGS32 =
|
LINKFLAGS32 =
|
||||||
LINKFLAGS64 =
|
LINKFLAGS64 =
|
||||||
STATICOPT_CC =
|
STATICOPT_CC =
|
||||||
@ -89,7 +90,7 @@ RELEASEOPT_LINK =
|
|||||||
#
|
#
|
||||||
# System Specific Flags
|
# System Specific Flags
|
||||||
#
|
#
|
||||||
SYSFLAGS = -DPOCO_HAVE_IPv6 -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_STAT64 -DPOCO_NO_SHAREDLIBS
|
SYSFLAGS = -DPOCO_HAVE_IPv6 -DPOCO_SOCKETADDRESS_DONT_PREFER_IPV4 -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_STAT64 -DPOCO_NO_SHAREDLIBS -DPOCO_NO_NET_IFTYPES
|
||||||
|
|
||||||
#
|
#
|
||||||
# System Specific Libraries
|
# System Specific Libraries
|
||||||
|
@ -6,96 +6,4 @@
|
|||||||
# Build settings for iPhone OS, using Apple's iPhone SDK
|
# Build settings for iPhone OS, using Apple's iPhone SDK
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
include $(POCO_BASE)/build/config/iPhone
|
||||||
# General Settings
|
|
||||||
#
|
|
||||||
# iPhone OS does not allow dynamic linking to user libraries
|
|
||||||
#
|
|
||||||
LINKMODE ?= STATIC
|
|
||||||
|
|
||||||
#
|
|
||||||
# If the SDK is defined use it
|
|
||||||
# Otherwise find the latest version installed
|
|
||||||
#
|
|
||||||
# IPHONE_SDK_VERSION = 2.2.1
|
|
||||||
|
|
||||||
# if IPHONE_SDK_VERSION_MIN is defined use that
|
|
||||||
# Otherwise use the version found.
|
|
||||||
|
|
||||||
IPHONE_SDK ?= iPhoneOS
|
|
||||||
IPHONE_SDK_ROOT ?= $(shell xcode-select -print-path)/Platforms/$(IPHONE_SDK).platform/Developer/SDKs
|
|
||||||
IPHONE_SDK_ROOT_DIR = $(IPHONE_SDK_ROOT)/$(IPHONE_SDK)
|
|
||||||
IPHONE_SDK_BASE = $(shell ls -d $(IPHONE_SDK_ROOT_DIR)$(IPHONE_SDK_VERSION)*.sdk | tail -1)
|
|
||||||
IPHONE_SDK_VERSION_MIN ?= $(patsubst %.sdk,%,$(patsubst $(IPHONE_SDK_ROOT_DIR)%,%,$(IPHONE_SDK_BASE)))
|
|
||||||
|
|
||||||
POCO_TARGET_OSNAME ?= $(IPHONE_SDK)
|
|
||||||
POCO_TARGET_OSARCH ?= armv7
|
|
||||||
TOOL_PREFIX ?= $(shell xcode-select -print-path)/Platforms/$(IPHONE_SDK).platform/Developer/usr/bin
|
|
||||||
ifneq ($(POCO_TARGET_OSARCH),arm64)
|
|
||||||
THUMB = -mthumb
|
|
||||||
endif
|
|
||||||
OSFLAGS ?= -arch $(POCO_TARGET_OSARCH) -isysroot $(IPHONE_SDK_BASE) $(THUMB) -miphoneos-version-min=$(IPHONE_SDK_VERSION_MIN)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Tools
|
|
||||||
#
|
|
||||||
# If GCC_VER is defined then use it.
|
|
||||||
# Otherwise select the latest version
|
|
||||||
#
|
|
||||||
|
|
||||||
CC = $(shell xcrun -find clang)
|
|
||||||
CXX = $(shell xcrun -find clang++)
|
|
||||||
|
|
||||||
LINK = $(CXX) -bind_at_load
|
|
||||||
LIB = libtool -static -o
|
|
||||||
RANLIB = ranlib
|
|
||||||
SHLIB = $(CXX) $(OSFLAGS) -dynamiclib -Wl,-install_name,$@ -o $@
|
|
||||||
DYLIB = $(CXX) $(OSFLAGS) -dynamic -bundle -read_only_relocs suppress -Wl,-bind_at_load -o $@
|
|
||||||
SHLIBLN = $(POCO_BASE)/build/script/shlibln
|
|
||||||
STRIP =
|
|
||||||
DEP = $(POCO_BASE)/build/script/makedepend.gcc
|
|
||||||
SHELL = sh
|
|
||||||
RM = rm -rf
|
|
||||||
CP = cp
|
|
||||||
MKDIR = mkdir -p
|
|
||||||
|
|
||||||
#
|
|
||||||
# Extension for Shared Libraries
|
|
||||||
#
|
|
||||||
SHAREDLIBEXT = .$(target_version).dylib
|
|
||||||
SHAREDLIBLINKEXT = .dylib
|
|
||||||
|
|
||||||
#
|
|
||||||
# Compiler and Linker Flags
|
|
||||||
#
|
|
||||||
CFLAGS = $(OSFLAGS)
|
|
||||||
CFLAGS32 =
|
|
||||||
CFLAGS64 =
|
|
||||||
CXXFLAGS = $(OSFLAGS) -Wall -Wno-sign-compare
|
|
||||||
CXXFLAGS32 =
|
|
||||||
CXXFLAGS64 =
|
|
||||||
LINKFLAGS = $(OSFLAGS)
|
|
||||||
LINKFLAGS32 =
|
|
||||||
LINKFLAGS64 =
|
|
||||||
STATICOPT_CC =
|
|
||||||
STATICOPT_CXX =
|
|
||||||
STATICOPT_LINK =
|
|
||||||
SHAREDOPT_CC = -fPIC
|
|
||||||
SHAREDOPT_CXX = -fPIC
|
|
||||||
SHAREDOPT_LINK =
|
|
||||||
DEBUGOPT_CC = -g -D_DEBUG=$(DEBUGLEVEL)
|
|
||||||
DEBUGOPT_CXX = -g -D_DEBUG=$(DEBUGLEVEL)
|
|
||||||
DEBUGOPT_LINK =
|
|
||||||
RELEASEOPT_CC = -DNDEBUG -O2
|
|
||||||
RELEASEOPT_CXX = -DNDEBUG -O
|
|
||||||
RELEASEOPT_LINK =
|
|
||||||
|
|
||||||
#
|
|
||||||
# System Specific Flags
|
|
||||||
#
|
|
||||||
SYSFLAGS = -DPOCO_HAVE_IPv6 -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_STAT64 -DPOCO_NO_SHAREDLIBS -DPOCO_NO_NET_IFTYPES
|
|
||||||
|
|
||||||
#
|
|
||||||
# System Specific Libraries
|
|
||||||
#
|
|
||||||
SYSLIBS = -ldl
|
|
||||||
|
@ -6,96 +6,4 @@
|
|||||||
# Build settings for iPhone OS, using Apple's iPhone SDK
|
# Build settings for iPhone OS, using Apple's iPhone SDK
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
include $(POCO_BASE)/build/config/iPhone
|
||||||
# General Settings
|
|
||||||
#
|
|
||||||
# iPhone OS does not allow dynamic linking to user libraries
|
|
||||||
#
|
|
||||||
LINKMODE ?= STATIC
|
|
||||||
|
|
||||||
#
|
|
||||||
# If the SDK is defined use it
|
|
||||||
# Otherwise find the latest version installed
|
|
||||||
#
|
|
||||||
# IPHONE_SDK_VERSION = 2.2.1
|
|
||||||
|
|
||||||
# if IPHONE_SDK_VERSION_MIN is defined use that
|
|
||||||
# Otherwise use the version found.
|
|
||||||
|
|
||||||
IPHONE_SDK ?= iPhoneOS
|
|
||||||
IPHONE_SDK_ROOT ?= $(shell xcode-select -print-path)/Platforms/$(IPHONE_SDK).platform/Developer/SDKs
|
|
||||||
IPHONE_SDK_ROOT_DIR = $(IPHONE_SDK_ROOT)/$(IPHONE_SDK)
|
|
||||||
IPHONE_SDK_BASE = $(shell ls -d $(IPHONE_SDK_ROOT_DIR)$(IPHONE_SDK_VERSION)*.sdk | tail -1)
|
|
||||||
IPHONE_SDK_VERSION_MIN ?= $(patsubst %.sdk,%,$(patsubst $(IPHONE_SDK_ROOT_DIR)%,%,$(IPHONE_SDK_BASE)))
|
|
||||||
|
|
||||||
POCO_TARGET_OSNAME ?= $(IPHONE_SDK)
|
|
||||||
POCO_TARGET_OSARCH ?= armv7
|
|
||||||
TOOL_PREFIX ?= $(shell xcode-select -print-path)/Platforms/$(IPHONE_SDK).platform/Developer/usr/bin
|
|
||||||
ifneq ($(POCO_TARGET_OSARCH),arm64)
|
|
||||||
THUMB = -mthumb
|
|
||||||
endif
|
|
||||||
OSFLAGS ?= -arch $(POCO_TARGET_OSARCH) -isysroot $(IPHONE_SDK_BASE) $(THUMB) -miphoneos-version-min=$(IPHONE_SDK_VERSION_MIN)
|
|
||||||
|
|
||||||
#
|
|
||||||
# Tools
|
|
||||||
#
|
|
||||||
# If GCC_VER is defined then use it.
|
|
||||||
# Otherwise select the latest version
|
|
||||||
#
|
|
||||||
|
|
||||||
CC = $(shell xcrun -find clang)
|
|
||||||
CXX = $(shell xcrun -find clang++)
|
|
||||||
|
|
||||||
LINK = $(CXX) -bind_at_load
|
|
||||||
LIB = libtool -static -o
|
|
||||||
RANLIB = ranlib
|
|
||||||
SHLIB = $(CXX) $(OSFLAGS) -dynamiclib -Wl,-install_name,$@ -o $@
|
|
||||||
DYLIB = $(CXX) $(OSFLAGS) -dynamic -bundle -read_only_relocs suppress -Wl,-bind_at_load -o $@
|
|
||||||
SHLIBLN = $(POCO_BASE)/build/script/shlibln
|
|
||||||
STRIP =
|
|
||||||
DEP = $(POCO_BASE)/build/script/makedepend.gcc
|
|
||||||
SHELL = sh
|
|
||||||
RM = rm -rf
|
|
||||||
CP = cp
|
|
||||||
MKDIR = mkdir -p
|
|
||||||
|
|
||||||
#
|
|
||||||
# Extension for Shared Libraries
|
|
||||||
#
|
|
||||||
SHAREDLIBEXT = .$(target_version).dylib
|
|
||||||
SHAREDLIBLINKEXT = .dylib
|
|
||||||
|
|
||||||
#
|
|
||||||
# Compiler and Linker Flags
|
|
||||||
#
|
|
||||||
CFLAGS = $(OSFLAGS)
|
|
||||||
CFLAGS32 =
|
|
||||||
CFLAGS64 =
|
|
||||||
CXXFLAGS = $(OSFLAGS) -std=c++11 -stdlib=libc++ -Wall -Wno-sign-compare
|
|
||||||
CXXFLAGS32 =
|
|
||||||
CXXFLAGS64 =
|
|
||||||
LINKFLAGS = $(OSFLAGS) -stdlib=libc++
|
|
||||||
LINKFLAGS32 =
|
|
||||||
LINKFLAGS64 =
|
|
||||||
STATICOPT_CC =
|
|
||||||
STATICOPT_CXX =
|
|
||||||
STATICOPT_LINK =
|
|
||||||
SHAREDOPT_CC = -fPIC
|
|
||||||
SHAREDOPT_CXX = -fPIC
|
|
||||||
SHAREDOPT_LINK =
|
|
||||||
DEBUGOPT_CC = -g -D_DEBUG=$(DEBUGLEVEL)
|
|
||||||
DEBUGOPT_CXX = -g -D_DEBUG=$(DEBUGLEVEL)
|
|
||||||
DEBUGOPT_LINK =
|
|
||||||
RELEASEOPT_CC = -DNDEBUG -O2
|
|
||||||
RELEASEOPT_CXX = -DNDEBUG -O
|
|
||||||
RELEASEOPT_LINK =
|
|
||||||
|
|
||||||
#
|
|
||||||
# System Specific Flags
|
|
||||||
#
|
|
||||||
SYSFLAGS = -DPOCO_HAVE_IPv6 -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_STAT64 -DPOCO_NO_SHAREDLIBS -DPOCO_NO_NET_IFTYPES
|
|
||||||
|
|
||||||
#
|
|
||||||
# System Specific Libraries
|
|
||||||
#
|
|
||||||
SYSLIBS = -ldl
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user