8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 09:20:39 +01:00

Support 64bit Darwin PPC - And will "only" work on 10.5 no matter how hard I try to support earlier versions.

This commit is contained in:
paulbeach 2008-06-09 14:05:42 +00:00
parent bdfb8a6d6a
commit dac128547a
2 changed files with 11 additions and 7 deletions

View File

@ -15,10 +15,10 @@
# All Rights Reserved.
# Contributor(s): ______________________________________.
# Start of file prefix.darwin: $(VERSION) @PLATFORM@
#$Id: prefix.darwin_ppc64,v 1.3 2008-06-09 13:03:29 paulbeach Exp $
#$Id: prefix.darwin_ppc64,v 1.4 2008-06-09 14:05:39 paulbeach Exp $
# 2 Oct 2002, Nickolay Samofatov - Major Cleanup
# To use this file to build 64bit version of Firebird for MacOS 10.4 (Tiger)
# To use this file to build 64bit version of Firebird for MacOS 10.5 (Leopard)
# Can only be built on MacOSX 10.5 (Leopard) due to lack of 64bit support in
# Carbon in previous versions of MacOSX
# 1. edit configure.in so that MAKEFILE_PREFIX=darwin_ppc64
@ -28,18 +28,18 @@
# 4. export CFLAGS='-arch _ppc64'
# 5. export CXXFLAGS='-arch ppc_64'
# 6. export LDFLAGS='-arch ppc_64'
# 7. export MACOSX_DEPLOYMENT_TARGET=10.4
# 7. export MACOSX_DEPLOYMENT_TARGET=10.5
DYLD_LIBRARY_PATH=$(FIREBIRD)/lib
export DYLD_LIBRARY_PATH
MACOSX_DEPLOYMENT_TARGET=10.4
MACOSX_DEPLOYMENT_TARGET=10.5
export MACOSX_DEPLOYMENT_TARGET
OS_ServerFiles=inet_server.cpp
PROD_FLAGS=-O3 -DNDEBUG -DDARWIN -pipe -p -MMD -fPIC -fno-common -mmacosx-version-min=10.4
DEV_FLAGS=-ggdb -DDARWIN -pipe -p -MMD -fPIC -fno-common -Wall -mmacosx-version-min=10.4
PROD_FLAGS=-O3 -DNDEBUG -DDARWIN -pipe -p -MMD -fPIC -fno-common -mmacosx-version-min=10.5
DEV_FLAGS=-ggdb -DDARWIN -pipe -p -MMD -fPIC -fno-common -Wall -mmacosx-version-min=10.5
CXXFLAGS:=$(CXXFLAGS) -fvisibility-inlines-hidden -fvisibility=hidden
EMBED_UTIL_TARGETS=gstat gds_drop gds_relay gsec nbackup fb_lock_print fbsvcmgr
CLIENT_UTIL_TARGETS=gds_drop gds_relay gstat gsec fbguard fbmgr_bin nbackup fb_lock_print fbsvcmgr
@ -48,7 +48,7 @@ Physical_IO_Module=os/posix/unix.cpp
PLATFORM_PATH=os/darwin
LINK_OPTS:=-arch ppc64
LD_FLAGS+=-arch ppc64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk
LD_FLAGS+=-arch ppc64
LIB_BUNDLE_OPTIONS:=$(LD_FLAGS) -bundle -flat_namespace -undefined suppress
LIB_LINK_OPTIONS:=$(LD_FLAGS) -dynamiclib -flat_namespace
LIB_LINK_SONAME:=-current_version @FIREBIRD_VERSION@ -compatibility_version @FIREBIRD_VERSION@ -seg1addr 0x30000000

View File

@ -20,6 +20,10 @@ LD_FLAGS += -headerpad_max_install_names
#CFLAGS += -arch x86_64
#CXXFLAGS += -arch x86_64
# 64 bit powerpc
#CFLAGS += -arch ppc64 -mmacosx-version-min=10.5
#CXXFLAGS += -arch ppc64 -mmacosx-version-min=10.5
# 32bit intel default
# DARWIN flag added because of problem with putil.c
CFLAGS += -arch i386 -mmacosx-version-min=10.4 -DDARWIN