Re: Is this expected gcc behavior? [Resend due to bad formatting]

2020-04-18 Thread Matthias Klose
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

Is this expected gcc behavior? [Resend due to bad formatting]

2020-04-17 Thread Michael T. Kloos
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: