1169689Skan/* Target definitions for Darwin 8.0 and above (Mac OS X) systems.
2169689Skan   Copyright (C) 2004, 2005
3169689Skan   Free Software Foundation, Inc.
4169689Skan
5169689SkanThis file is part of GCC.
6169689Skan
7169689SkanGCC is free software; you can redistribute it and/or modify
8169689Skanit under the terms of the GNU General Public License as published by
9169689Skanthe Free Software Foundation; either version 2, or (at your option)
10169689Skanany later version.
11169689Skan
12169689SkanGCC is distributed in the hope that it will be useful,
13169689Skanbut WITHOUT ANY WARRANTY; without even the implied warranty of
14169689SkanMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15169689SkanGNU General Public License for more details.
16169689Skan
17169689SkanYou should have received a copy of the GNU General Public License
18169689Skanalong with GCC; see the file COPYING.  If not, write to
19169689Skanthe Free Software Foundation, 51 Franklin Street, Fifth Floor,
20169689SkanBoston, MA 02110-1301, USA.  */
21169689Skan
22169689Skan/* Machine dependent libraries.  Include libmx when compiling on
23169689Skan   Darwin 7.0 and above, but before libSystem, since the functions are
24169689Skan   actually in libSystem but for 7.x compatibility we want them to be
25169689Skan   looked for in libmx first---but only do this if 7.x compatibility
26169689Skan   is a concern, which it's not in 64-bit mode.  Include
27169689Skan   libSystemStubs when compiling on (not necessarily for) 8.0 and
28169689Skan   above and not 64-bit long double.  */
29169689Skan
30169689Skan#undef	LIB_SPEC
31169689Skan#define LIB_SPEC "%{!static:\
32169689Skan  %{!mlong-double-64:%{pg:-lSystemStubs_profile;:-lSystemStubs}} \
33169689Skan  %{!m64:%:version-compare(>< 10.3 10.4 mmacosx-version-min= -lmx)} -lSystem}"
34