yes, this is expected. ld --as-needed is now the default.
On 4/18/20 3:05 AM, Michael T. Kloos wrote:
> On Debian Unstable(gcc v9.3.0), gcc won't link libraries that are passed via
> "-l" before the source file. This does NOT happen on Debian Stable(gcc
> v8.3.0)
> or on my Gentoo system(gcc v9
On Debian Unstable(gcc v9.3.0), gcc won't link libraries that are passed
via "-l" before the source file. This does NOT happen on Debian
Stable(gcc v8.3.0) or on my Gentoo system(gcc v9.2.0). Is this expected
behavior?
Example:
Works:
$ gcc ./simple_app.c -lX11 -o ./simple_app.out
Broken:
2 matches
Mail list logo