[Interest] Building QTWebEngine -- setting ld parameters

Simon Matthews simon.matthews at bluepearlsoftware.com
Thu Oct 24 02:00:47 CEST 2019

I am getting a failure in linking:
/opt/rh/devtoolset-8/root/usr/bin/g++ -O3 -fdata-sections
-ffunction-sections -Wl,--gc-sections -Wl,-strip-all -static-libstdc++
-Wl,--as-needed -pthread -o gn -Wl,--start-group tools/gn/gn_main.o
base.a gn_lib.a -Wl,--end-group -ldl
util/ticks.o: In function `TicksNow()':
ticks.cc:(.text._Z8TicksNowv+0x1c): undefined reference to `clock_gettime'
ticks.cc:(.text._Z8TicksNowv+0x5a): undefined reference to `clock_gettime'
collect2: error: ld returned 1 exit status

This appear to be a problem that has affected building other tools and
the solution appears to be to add "-lrt" to the linker parameters.

But how do I do this? I tried setting QMAKE_LDFLAGS="-lrt", but this did
not appear to change the linker parameters.


Blue Pearl Software, Inc. will collect and process information about you that may be subject to data protection laws. For more information about how we use and disclose your personal information, how we protect your information, our legal basis to use your information, your rights and who you can contact, please refer to the relevant sections of our Privacy note at www.bluepearlsoftware.com/privacypolicy.

More information about the Interest mailing list