diff options
author | Iain Sandoe <iains@gcc.gnu.org> | 2010-07-22 08:02:20 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2010-07-22 08:02:20 +0000 |
commit | 50eb566f049aed7b21a580d75abd197430538f1d (patch) | |
tree | d859ccd2c474a86596c55c6bd772acb80ba368c3 /gcc/config/darwin.h | |
parent | 3b2ee1701fcfc7792a2348779f1578717e1f6efd (diff) | |
download | gcc-50eb566f049aed7b21a580d75abd197430538f1d.zip gcc-50eb566f049aed7b21a580d75abd197430538f1d.tar.gz gcc-50eb566f049aed7b21a580d75abd197430538f1d.tar.bz2 |
darwin.h (LINK_COMMAND_SPEC): Split into...
* config/darwin.h (LINK_COMMAND_SPEC): Split into...
(LINK_COMMAND_SPEC_A): New.
(DSYMUTIL): New.
(DSYMUTIL_SPEC): New.
* config/darwin9.h (LINK_COMMAND_SPEC): Remove.
(DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
-This line, and those below, will be ignored--
M ChangeLog
M config/darwin.h
M config/darwin9.h
From-SVN: r162403
Diffstat (limited to 'gcc/config/darwin.h')
-rw-r--r-- | gcc/config/darwin.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 99d9928..066d092 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -266,8 +266,9 @@ extern GTY(()) int darwin_ms_struct; instead of LINK_COMMAND_SPEC. The command spec is better for specifying the handling of options understood by generic Unix linkers, and for positional arguments like libraries. */ -#define LINK_COMMAND_SPEC "\ -%{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ + +#define LINK_COMMAND_SPEC_A \ + "%{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ %(linker) %l %X %{d} %{s} %{t} %{Z} %{u*} \ %{A} %{e*} %{m} %{r} %{x} \ %{o*}%{!o:-o a.out} \ @@ -277,10 +278,16 @@ extern GTY(()) int darwin_ms_struct; %{fopenmp|ftree-parallelize-loops=*: \ %{static|static-libgcc|static-libstdc++|static-libgfortran: libgomp.a%s; : -lgomp } } \ %{!nostdlib:%{!nodefaultlibs: %(link_ssp) %G %L }} \ - %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} }}}}}}}\n\ -%{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ + %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} }}}}}}}\n" + +#define DSYMUTIL "dsymutil" + +#define DSYMUTIL_SPEC \ + "%{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ %{.c|.cc|.C|.cpp|.cp|.c++|.cxx|.CPP|.m|.mm: \ - %{gdwarf-2:%{!gstabs*:%{!g0: dsymutil %{o*:%*}%{!o:a.out}}}}}}}}}}}}" + %{gdwarf-2:%{!gstabs*:%{!g0: " DSYMUTIL " %{o*:%*}%{!o:a.out}}}}}}}}}}}}" + +#define LINK_COMMAND_SPEC LINK_COMMAND_SPEC_A DSYMUTIL_SPEC #ifdef TARGET_SYSTEM_ROOT #define LINK_SYSROOT_SPEC \ |