13
0

Fix gprof builds

`-pg` needs is both a compiler and linker flag.
This commit is contained in:
Robin Gareus 2021-05-23 01:05:22 +02:00
parent 42f4e64d5f
commit 44c0535b10
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -774,6 +774,9 @@ int main() { return 0; }''',
if platform != 'darwin' and not is_clang and not Options.options.dist_target == 'mingw':
linker_flags += [ '-rdynamic' ]
if opt.gprofile:
linker_flags += [ flags_dict['gprofile'] ]
conf.env.append_value('CFLAGS', compiler_flags)
conf.env.append_value('CFLAGS', c_flags)
conf.env.append_value('CXXFLAGS', compiler_flags)