darwin10.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* Target definitions for Darwin (Mac OS X) systems.
  2. Copyright (C) 2009-2015 Free Software Foundation, Inc.
  3. Contributed by Jack Howarth <howarth@bromo.med.uc.edu>.
  4. This file is part of GCC.
  5. GCC is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 3, or (at your option)
  8. any later version.
  9. GCC is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with GCC; see the file COPYING3. If not see
  15. <http://www.gnu.org/licenses/>. */
  16. /* Fix PR41260 by passing -no_compact_unwind on darwin10 and later until
  17. unwinder in libSystem is fixed to digest new epilog unwinding notes.
  18. Fix PR47558 by linking against libSystem ahead of libgcc_ext. */
  19. #undef LINK_GCC_C_SEQUENCE_SPEC
  20. #define LINK_GCC_C_SEQUENCE_SPEC \
  21. "%:version-compare(>= 10.6 mmacosx-version-min= -no_compact_unwind) \
  22. %{!static:%{!static-libgcc: \
  23. %:version-compare(>= 10.6 mmacosx-version-min= -lSystem) } } \
  24. %{fno-pic|fno-PIC|fno-pie|fno-PIE|fapple-kext|mkernel|static|mdynamic-no-pic: \
  25. %:version-compare(>= 10.7 mmacosx-version-min= -no_pie) } %G %L"
  26. #undef DEF_MIN_OSX_VERSION
  27. #define DEF_MIN_OSX_VERSION "10.6"