When installing qt, an error occurs when executing ./configure: error: unrecognized command line option ‘-fuse-ld=gold’
This error is a bug in qt.
In systems with gold linker installed, the compile script will add the -fuse-ld=gold option, but this option is not supported by gcc.
The solution is to remove this option, find the file src/3rdparty/webkit/Source/common.pri, and block QMAKE_LFLAGS+=-fuse-ld=gold.
Just comment out # QMAKE_LFLAGS+=-fuse-ld=gold.
Reference article:
The above is the detailed content of linux下安装QT5:error: unrecognized command line option '-fuse-ld=gold'. For more information, please follow other related articles on the PHP Chinese website!