diff options
-rwxr-xr-x | configure.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.py b/configure.py index c526c1a..bfcf2ec 100755 --- a/configure.py +++ b/configure.py @@ -166,7 +166,8 @@ else: cflags.append('-pg') ldflags.append('-pg') elif options.profile == 'pprof': - libs.append('-lprofiler') + cflags.append('-fno-omit-frame-pointer') + libs.extend(['-Wl,--no-as-needed', '-lprofiler']) def shell_escape(str): """Escape str such that it's interpreted as a single argument by |