| 1 | Do not pass -dynamic-linker to linker when !shared.
|
| 2 | Fixes <http://bugs.gnu.org/20102>.
|
| 3 |
|
| 4 | ARM 'link' spec issue reported at
|
| 5 | https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65711 and
|
| 6 | https://gcc.gnu.org/ml/gcc-patches/2015-04/msg01387.html.
|
| 7 |
|
| 8 | Patch by Ludovic Courtès <[email protected]>.
|
| 9 |
|
| 10 | |
| 11 | |
| 12 | @@ -65,7 +65,7 @@
|
| 13 | %{symbolic:-Bsymbolic} \
|
| 14 | %{!static: \
|
| 15 | %{rdynamic:-export-dynamic} \
|
| 16 | - -dynamic-linker " GNU_USER_DYNAMIC_LINKER "} \
|
| 17 | + %{!shared:-dynamic-linker " GNU_USER_DYNAMIC_LINKER "}} \
|
| 18 | -X \
|
| 19 | %{mbig-endian:-EB} %{mlittle-endian:-EL}" \
|
| 20 | SUBTARGET_EXTRA_LINK_SPEC
|