cannot find -l-static-libgcc when building gcc from source

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I try to build gcc (9.3.0) from source on ubuntu focal using the following
configure call:

./configure --enable-shared --enable-multilib --prefix=/opt/gcc

The configure runs OK but when building/linking I get the following error:

libtool: link: gcc -shared  -fPIC -DPIC  .libs/lto-plugin.o   -l
-static-libgcc -static-libstdc++ -static-libgcc
../libiberty/pic/libiberty.a   -Wl,-soname -Wl,liblto_plugin.so.0 -o
.libs/liblto_plugin.so.0.0.0
/usr/bin/ld: cannot find -l-static-libgcc

It seems that some gcc linker options have been but in the wrong
place. I have the same mistake with another version of gcc (6.5.0) so
the
problem seems to be on my side. Would you have any idea about what is
wrong with my settings ? Am I missing a dependency ?

many thanks in advance for your help

Eric



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux