mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
fixed GH #1536: Building with OS X 10.12 SDK and 10.7 deployment target without libc++ fails; updated Darwin build configurations
This commit is contained in:
parent
917a4da7e9
commit
bbecde0829
@ -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
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
#
|
#
|
||||||
# $Id: //poco/1.4/build/config/Darwin#6 $
|
# $Id$
|
||||||
#
|
#
|
||||||
# Darwin
|
# Darwin
|
||||||
#
|
#
|
||||||
# Build settings for Mac OS X 10.6 or newer, using Clang.
|
# Build settings for Mac OS X 10.9 (clang++, libc++, x86_64)
|
||||||
#
|
# The build settings defined in this file are compatible
|
||||||
# NOTE: This build configuration will build 64-bit binaries.
|
# with XCode C++ projects.
|
||||||
# Use the Darwin32 build configuration to build 32-bit binaries.
|
|
||||||
#
|
#
|
||||||
|
|
||||||
include $(POCO_BASE)/build/config/Darwin-clang-libc++
|
include $(POCO_BASE)/build/config/Darwin-clang-libc++
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
#
|
#
|
||||||
# $Id: //poco/1.4/build/config/Darwin-clang#4 $
|
# $Id$
|
||||||
#
|
#
|
||||||
# Darwin
|
# Darwin-clang
|
||||||
#
|
#
|
||||||
# Build settings for Mac OS X 10.6 (clang++)
|
# Build settings for Mac OS X 10.7 (clang, libstdc++, x86_64)
|
||||||
# The build settings defined in this file are compatible
|
|
||||||
# with XCode 4 C++ projects.
|
|
||||||
#
|
#
|
||||||
# NOTE: This build configuration will build 64-bit binaries.
|
# NOTE: This build configuration will build 64-bit binaries.
|
||||||
# Use the Darwin32-clang build configuration to build 32-bit binaries.
|
# Use the Darwin32-clang build configuration to build 32-bit binaries.
|
||||||
@ -18,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
|
||||||
@ -53,11 +52,11 @@ SHAREDLIBLINKEXT = .dylib
|
|||||||
#
|
#
|
||||||
# Compiler and Linker Flags
|
# Compiler and Linker Flags
|
||||||
#
|
#
|
||||||
CFLAGS = $(ARCHFLAGS)
|
CFLAGS = $(ARCHFLAGS) $(OSFLAGS)
|
||||||
CXXFLAGS = $(ARCHFLAGS) -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)
|
LINKFLAGS = $(ARCHFLAGS) $(OSFLAGS) -stdlib=libstdc++
|
||||||
SHLIBFLAGS = $(ARCHFLAGS)
|
SHLIBFLAGS = $(ARCHFLAGS) $(OSFLAGS) -stdlib=libstdc++
|
||||||
DYLIBFLAGS = $(ARCHFLAGS)
|
DYLIBFLAGS = $(ARCHFLAGS) $(OSFLAGS) -stdlib=libstdc++
|
||||||
STATICOPT_CC =
|
STATICOPT_CC =
|
||||||
STATICOPT_CXX =
|
STATICOPT_CXX =
|
||||||
STATICOPT_LINK =
|
STATICOPT_LINK =
|
||||||
@ -79,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
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
#
|
#
|
||||||
# $Id: //poco/1.4/build/config/Darwin-clang#4 $
|
# $Id$
|
||||||
#
|
#
|
||||||
# Darwin
|
# Darwin-clang-libc++
|
||||||
#
|
#
|
||||||
# Build settings for Mac OS X 10.6 (clang++)
|
# Build settings for Mac OS X 10.9 (clang, libc++, x86_64)
|
||||||
# The build settings defined in this file are compatible
|
# The build settings defined in this file are compatible
|
||||||
# with XCode 4 C++ projects.
|
# with XCode C++ projects.
|
||||||
#
|
#
|
||||||
# NOTE: This build configuration will build 64-bit binaries.
|
# NOTE: This build configuration will build 64-bit binaries.
|
||||||
# Use the Darwin32-clang build configuration to build 32-bit binaries.
|
# Use the Darwin32-clang-libc++ build configuration to build 32-bit binaries.
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -19,8 +19,9 @@ 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.9
|
||||||
|
|
||||||
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
|
||||||
@ -53,11 +54,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++11 -stdlib=libc++ -Wall -Wno-sign-compare -Wno-unused-variable -Wno-unused-function -Wno-unneeded-internal-declaration
|
||||||
LINKFLAGS = $(ARCHFLAGS) -stdlib=libc++
|
LINKFLAGS = $(ARCHFLAGS) $(OSFLAGS) -stdlib=libc++
|
||||||
SHLIBFLAGS = $(ARCHFLAGS) -stdlib=libc++
|
SHLIBFLAGS = $(ARCHFLAGS) $(OSFLAGS) -stdlib=libc++
|
||||||
DYLIBFLAGS = $(ARCHFLAGS) -stdlib=libc++
|
DYLIBFLAGS = $(ARCHFLAGS) $(OSFLAGS) -stdlib=libc++
|
||||||
STATICOPT_CC =
|
STATICOPT_CC =
|
||||||
STATICOPT_CXX =
|
STATICOPT_CXX =
|
||||||
STATICOPT_LINK =
|
STATICOPT_LINK =
|
||||||
|
@ -1,77 +0,0 @@
|
|||||||
#
|
|
||||||
# $Id: //poco/1.4/build/config/Darwin-gcc#1 $
|
|
||||||
#
|
|
||||||
# Darwin
|
|
||||||
#
|
|
||||||
# Build settings for Mac OS X 10.6 (GCC 4.2)
|
|
||||||
# The build settings defined in this file are compatible
|
|
||||||
# with XCode 3.2.5 C++ projects.
|
|
||||||
#
|
|
||||||
# NOTE: This build configuration will build 64-bit binaries.
|
|
||||||
# Use the Darwin32 build configuration to build 32-bit binaries.
|
|
||||||
#
|
|
||||||
|
|
||||||
#
|
|
||||||
# General Settings
|
|
||||||
#
|
|
||||||
LINKMODE ?= SHARED
|
|
||||||
|
|
||||||
POCO_TARGET_OSARCH ?= x86_64
|
|
||||||
POCO_HOST_OSARCH := $(POCO_TARGET_OSARCH)
|
|
||||||
ARCHFLAGS ?= -arch $(POCO_TARGET_OSARCH)
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Tools
|
|
||||||
#
|
|
||||||
CC = gcc
|
|
||||||
CXX = g++
|
|
||||||
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 -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 = $(ARCHFLAGS)
|
|
||||||
CXXFLAGS = $(ARCHFLAGS) -Wall -Wno-sign-compare
|
|
||||||
LINKFLAGS = $(ARCHFLAGS)
|
|
||||||
SHLIBFLAGS = $(ARCHFLAGS)
|
|
||||||
DYLIBFLAGS = $(ARCHFLAGS)
|
|
||||||
STATICOPT_CC =
|
|
||||||
STATICOPT_CXX =
|
|
||||||
STATICOPT_LINK =
|
|
||||||
SHAREDOPT_CC = -fPIC
|
|
||||||
SHAREDOPT_CXX = -fPIC
|
|
||||||
SHAREDOPT_LINK =
|
|
||||||
DEBUGOPT_CC = -O0 -g -gdwarf-2 -D_DEBUG=$(DEBUGLEVEL)
|
|
||||||
DEBUGOPT_CXX = -O0 -g -gdwarf-2 -D_DEBUG=$(DEBUGLEVEL) -mfix-and-continue -fvisibility-inlines-hidden -fasm-blocks
|
|
||||||
DEBUGOPT_LINK =
|
|
||||||
RELEASEOPT_CC = -DNDEBUG -Os
|
|
||||||
RELEASEOPT_CXX = -DNDEBUG -Os -fvisibility-inlines-hidden -fasm-blocks
|
|
||||||
RELEASEOPT_LINK =
|
|
||||||
|
|
||||||
#
|
|
||||||
# System Specific Flags
|
|
||||||
#
|
|
||||||
SYSFLAGS = -DPOCO_HAVE_IPv6
|
|
||||||
|
|
||||||
#
|
|
||||||
# System Specific Libraries
|
|
||||||
#
|
|
||||||
SYSLIBS = -ldl
|
|
@ -1,14 +1,14 @@
|
|||||||
#
|
#
|
||||||
# $Id: //poco/1.4/build/config/Darwin32#2 $
|
# $Id$
|
||||||
#
|
#
|
||||||
# Darwin32
|
# Darwin32
|
||||||
#
|
#
|
||||||
# Build settings for Mac OS X 10.5/10.6 (GCC 4.0.1), 32-bits
|
# Build settings for Mac OS X 10.9 (clang, libc++, i386)
|
||||||
# The build settings defined in this file are compatible
|
# The build settings defined in this file are compatible
|
||||||
# with XCode 3.1 C++ projects.
|
# 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++
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
#
|
#
|
||||||
# $Id: //poco/1.4/build/config/Darwin32-clang#1 $
|
# $Id$
|
||||||
#
|
#
|
||||||
# Darwin32
|
# Darwin32-clang
|
||||||
#
|
#
|
||||||
# Build settings for Mac OS X 10.5/10.6 (GCC 4.0.1), 32-bits
|
# Build settings for Mac OS X 10.7 (clang, libstdc++, i386)
|
||||||
# The build settings defined in this file are compatible
|
|
||||||
# with XCode 3.1 C++ projects.
|
|
||||||
#
|
#
|
||||||
|
|
||||||
ARCHFLAGS = -arch i386
|
ARCHFLAGS = -arch i386
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
#
|
#
|
||||||
# $Id: //poco/1.4/build/config/Darwin32-clang#1 $
|
# $Id$
|
||||||
#
|
#
|
||||||
# Darwin32
|
# Darwin32-clang-libc++
|
||||||
#
|
#
|
||||||
# Build settings for Mac OS X 10.5/10.6 (GCC 4.0.1), 32-bits
|
# Build settings for Mac OS X 10.9 (clang, libc++, i386)
|
||||||
# The build settings defined in this file are compatible
|
# The build settings defined in this file are compatible
|
||||||
# with XCode 3.1 C++ projects.
|
# with XCode C++ projects.
|
||||||
#
|
#
|
||||||
|
|
||||||
ARCHFLAGS = -arch i386
|
ARCHFLAGS = -arch i386
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
#
|
|
||||||
# $Id: //poco/1.4/build/config/Darwin32-gcc#1 $
|
|
||||||
#
|
|
||||||
# Darwin32
|
|
||||||
#
|
|
||||||
# Build settings for Mac OS X 10.5/10.6 (GCC 4.0.1), 32-bits
|
|
||||||
# The build settings defined in this file are compatible
|
|
||||||
# with XCode 3.1 C++ projects.
|
|
||||||
#
|
|
||||||
|
|
||||||
ARCHFLAGS = -arch i386
|
|
||||||
POCO_TARGET_OSARCH = i386
|
|
||||||
|
|
||||||
include $(POCO_BASE)/build/config/Darwin
|
|
@ -1,14 +1,14 @@
|
|||||||
#
|
#
|
||||||
# $Id: //poco/1.4/build/config/Darwin64#2 $
|
# $Id$
|
||||||
#
|
#
|
||||||
# Darwin64
|
# Darwin64
|
||||||
#
|
#
|
||||||
# Build settings for Mac OS X 10.5/10.6 (GCC 4.0.1), 64-bits
|
# Build settings for Mac OS X 10.9 (clang, libc++, x86_64)
|
||||||
# The build settings defined in this file are compatible
|
# The build settings defined in this file are compatible
|
||||||
# with XCode 3.1 C++ projects.
|
# 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++
|
||||||
|
@ -1,11 +1,9 @@
|
|||||||
#
|
#
|
||||||
# $Id: //poco/1.4/build/config/Darwin64-clang#1 $
|
# $Id$
|
||||||
#
|
#
|
||||||
# Darwin64
|
# Darwin64-clang
|
||||||
#
|
#
|
||||||
# Build settings for Mac OS X 10.5/10.6 (GCC 4.0.1), 64-bits
|
# Build settings for Mac OS X 10.7 (clang, libstdc++, x86_64)
|
||||||
# The build settings defined in this file are compatible
|
|
||||||
# with XCode 3.1 C++ projects.
|
|
||||||
#
|
#
|
||||||
|
|
||||||
ARCHFLAGS = -arch x86_64
|
ARCHFLAGS = -arch x86_64
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
#
|
#
|
||||||
# $Id: //poco/1.4/build/config/Darwin64-clang#1 $
|
# $Id$
|
||||||
#
|
#
|
||||||
# Darwin64
|
# Darwin64-clang-libc++
|
||||||
#
|
#
|
||||||
# Build settings for Mac OS X 10.5/10.6 (GCC 4.0.1), 64-bits
|
# Build settings for Mac OS X 10.9 (clang, libc++, x86_64)
|
||||||
# The build settings defined in this file are compatible
|
# The build settings defined in this file are compatible
|
||||||
# with XCode 3.1 C++ projects.
|
# with XCode C++ projects.
|
||||||
#
|
#
|
||||||
|
|
||||||
ARCHFLAGS = -arch x86_64
|
ARCHFLAGS = -arch x86_64
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
#
|
|
||||||
# $Id: //poco/1.4/build/config/Darwin64-gcc#1 $
|
|
||||||
#
|
|
||||||
# Darwin64
|
|
||||||
#
|
|
||||||
# Build settings for Mac OS X 10.5/10.6 (GCC 4.0.1), 64-bits
|
|
||||||
# The build settings defined in this file are compatible
|
|
||||||
# with XCode 3.1 C++ projects.
|
|
||||||
#
|
|
||||||
|
|
||||||
ARCHFLAGS = -arch x86_64
|
|
||||||
POCO_TARGET_OSARCH = x86_64
|
|
||||||
|
|
||||||
include $(POCO_BASE)/build/config/Darwin
|
|
Loading…
Reference in New Issue
Block a user