diff options
author | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-07 11:32:10 +0000 |
---|---|---|
committer | amylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-02-07 11:32:10 +0000 |
commit | fad5552949444db04a17da9ff9f307e3054b8f9d (patch) | |
tree | 25ee405f3219aeeb6fafa526c1d060ef04992b5f /gcc/config/epiphany | |
parent | b86a26275caf2605c718c2d0d2731b1aa6113a4d (diff) | |
download | gcc-fad5552949444db04a17da9ff9f307e3054b8f9d.tar.gz |
* config/epiphany/epiphany.h (LIB_SPEC): Link libc again after libgloss.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183964 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/epiphany')
-rw-r--r-- | gcc/config/epiphany/epiphany.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/config/epiphany/epiphany.h b/gcc/config/epiphany/epiphany.h index 572ec7ecb3f..92b781f5cea 100644 --- a/gcc/config/epiphany/epiphany.h +++ b/gcc/config/epiphany/epiphany.h @@ -43,9 +43,11 @@ along with GCC; see the file COPYING3. If not see } while (0) /* Pick up the libgloss library. One day we may do this by linker script, but - for now its static. */ + for now its static. + libgloss might use errno/__errno, which might not have been needed when we + saw libc the first time, so link with libc a second time. */ #undef LIB_SPEC -#define LIB_SPEC "%{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}} -lepiphany" +#define LIB_SPEC "%{!shared:%{g*:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}} -lepiphany %{!shared:%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}" #define LINK_SPEC "%{v}" |