Home  >  Article  >  Operation and Maintenance  >  linux下安装QT5:error: unrecognized command line option ‘-fuse-ld=gold’

linux下安装QT5:error: unrecognized command line option ‘-fuse-ld=gold’

PHP中文网
PHP中文网Original
2017-06-22 08:57:202409browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn