NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: toolchain/55594: Error creating shared library using gcc-7.5.0 on NetBSD 9.0_STABLE
The following reply was made to PR toolchain/55594; it has been noted by GNATS.
From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: toolchain/55594: Error creating shared library using gcc-7.5.0
on NetBSD 9.0_STABLE
Date: Sun, 23 Aug 2020 09:10:57 +0000
On Thu, Aug 20, 2020 at 01:40:02PM +0000, Rajeev V. Pillai wrote:
>> Looks like ``-Wl,-shared'' is not the same as ``-shared''. I
>> thought it was.
>
> OK. I've tried gcc-8.3.0 & gcc-10.2.0, clang-8.0.1 &
> clang-10.0.1. None of them accept ``-Wl,-shared'' as a synonym for
> ``-shared''.
>
> I'll report a bug with the ncurses maintainer, instead.
-Wl,-shared means "pass -shared to the linker and do nothing else"
while -shared means "tell the compiler driver to build a shared
library", which includes both passing -shared to the linker and also
doing other things. Without the other things, you'll among other
things get the wrong crstuff and it won't work.
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index