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

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

PHP中文网
Release: 2017-06-22 08:57:20
Original
2498 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template