Files
pcas/configure/os/CONFIG.darwin-ppc.darwin-ppc
T
W. Eric Norum 8eb5ff24c6 Clean up -pedantic flag.
Add support for objective-C.
2003-02-10 16:28:48 +00:00

48 lines
993 B
Plaintext

# CONFIG.darwin-ppc.darwin-ppc
#
# $Id$
#
# Definitions for darwin-ppc host - darwin-ppc target builds
# Sites may override these definitions in CONFIG_SITE.darwin-ppc.darwin-ppc
#-------------------------------------------------------
# Include common gnu compiler definitions
include $(CONFIG)/CONFIG.gnuCommon
GNU_DIR = /usr
CC = $(GNU_BIN)/cc
CCC = $(GNU_BIN)/c++
#
# Position-independent code is the default on Darwin.
#
CODE_CFLAGS =
CODE_CXXFLAGS =
#
# -O3 is too agressive on Darwin with the April 2002 Developer Tools
# and causes problems with undefined references to non-virtual thunks
# with the August 2002 Developer Tools.
#
OPT_CFLAGS_YES = -O2
OPT_CXXFLAGS_YES = -O2
#
# Static linking fails on OS X (missing crt0.o)
#
STATIC_LDFLAGS_YES =
#
# Add support for Objective-C source
#
vpath %.m $(USR_VPATH) $(ALL_SRC_DIRS)
%.o: %.m
$(COMPILE.c) -c $<
#
# Pedantic produces way too many unnecessary messages
#
CONFORM_CFLAGS_STRICT=-ansi
CONFORM_CXXFLAGS_STRICT=-ansi