https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87698

--- Comment #3 from Romain Geissler <romain.geissler at amadeus dot com> ---
Well I might not understand everything but no I don't think I am comparing
uncomparable things.

I never build/link with -fno-lto, -flto is *always* provided.

See for example the case with fat objects:
compile command line is:

libtool: compile:  gcc -DHAVE_CONFIG_H -I../include -I../src
-I/remote/users/rgeissler/wk/ospack/ssh2/rpm-bms-scripts/DEPS/osp/OpenSSL/ssl/latest/osp/include
-I/remote/users/rgeissler/wk/ospack/ssh2/rpm-bms-scripts/DEPS/osp/OpenSSL/crypto/latest/osp/include
-I/remote/users/rgeissler/wk/ospack/ssh2/rpm-bms-scripts/DEPS/osp/ZLib/latest/osp/include
-std=gnu11 -fno-working-directory -ggdb3 -flto -ffat-lto-objects
-fuse-linker-plugin
-I/remote/users/rgeissler/wk/ospack/ssh2/rpm-bms-scripts/DEPS/osp/OpenSSL/ssl/latest/osp/include
-I/remote/users/rgeissler/wk/ospack/ssh2/rpm-bms-scripts/DEPS/osp/OpenSSL/crypto/latest/osp/include
-I/remote/users/rgeissler/wk/ospack/ssh2/rpm-bms-scripts/DEPS/osp/ZLib/latest/osp/include
-MT openssl.lo -MD -MP -MF .deps/openssl.Tpo -c openssl.c  -fPIC -DPIC -o
.libs/openssl.o

link command line is:
libtool: link:  gcc -shared  -fPIC -DPIC  .libs/channel.o .libs/comp.o
.libs/crypt.o .libs/hostkey.o .libs/kex.o .libs/mac.o .libs/misc.o
.libs/packet.o .libs/publickey.o .libs/scp.o .libs/session.o .libs/sftp.o
.libs/userauth.o .libs/transport.o .libs/version.o .libs/knownhost.o
.libs/agent.o .libs/openssl.o .libs/pem.o .libs/keepalive.o .libs/global.o  
-Wl,-rpath
-Wl,/remote/users/rgeissler/wk/ospack/ssh2/rpm-bms-scripts/DEPS/osp/OpenSSL/ssl/latest/osp/lib
-Wl,-rpath
-Wl,/remote/users/rgeissler/wk/ospack/ssh2/rpm-bms-scripts/DEPS/osp/ZLib/latest/osp/lib
-L/remote/users/rgeissler/wk/ospack/ssh2/rpm-bms-scripts/DEPS/osp/OpenSSL/ssl/latest/osp/lib
-lssl -lcrypto
-L/remote/users/rgeissler/wk/ospack/ssh2/rpm-bms-scripts/DEPS/osp/ZLib/latest/osp/lib
-lz
-L/remote/users/rgeissler/wk/ospack/ssh2/rpm-bms-scripts/DEPS/osp/OpenSSL/crypto/latest/osp/lib
 -ggdb3 -flto -fuse-linker-plugin -g -O3 -ggdb3 -flto -fuse-linker-plugin  
-Wl,-soname -Wl,libssh2.so.1 -Wl,-version-script -Wl,.libs/libssh2.ver -o
.libs/libssh2.so.1.0.1

Reply via email to