From 44c0535b1039d35762480c1bf6cecbe2d8750476 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 23 May 2021 01:05:22 +0200 Subject: [PATCH] Fix gprof builds `-pg` needs is both a compiler and linker flag. --- wscript | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wscript b/wscript index 03909d7139..c4ee09b052 100644 --- a/wscript +++ b/wscript @@ -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)