diff options
author | iains <iains@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-17 13:22:28 +0000 |
---|---|---|
committer | iains <iains@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-17 13:22:28 +0000 |
commit | 8127ab5d0f776e36ccac421e711bf66a73a73641 (patch) | |
tree | bab5c0bd0898b585bfbdc2cef1cac677a2b6ad2f /gcc/config/darwin.h | |
parent | 5ae7e0a539110352e344788f8fed6675a004df94 (diff) | |
download | ppe42-gcc-8127ab5d0f776e36ccac421e711bf66a73a73641.tar.gz ppe42-gcc-8127ab5d0f776e36ccac421e711bf66a73a73641.zip |
2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
* gcc.c (spec_function): Add remove-outfile.
(remove_outfile_spec_function): New function.
* config/darwin.h (LINK_SPEC): Add removal of
-ldl, -lm and -lpthread.
* invoke.texi (replace-outfile): Document.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163305 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/darwin.h')
-rw-r--r-- | gcc/config/darwin.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index feb57c9feb7..c9354344e3b 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -303,6 +303,9 @@ extern GTY(()) int darwin_ms_struct; so put a * after their names so all of them get passed. */ #define LINK_SPEC \ "%{static}%{!static:-dynamic} \ + %:remove-outfile(-ldl) \ + %:remove-outfile(-lm) \ + %:remove-outfile(-lpthread) \ %{fgnu-runtime: %{static|static-libgcc: \ %:replace-outfile(-lobjc libobjc-gnu.a%s); \ :%:replace-outfile(-lobjc -lobjc-gnu ) } }\ |