From c5114830b854335c8e7229f28741f1d3fd6c3840 Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Mon, 15 Apr 2013 14:41:10 -0700 Subject: [PATCH] fix --profile=pprof on newer ubuntus The --as-needed default for ld would drop -lprofiler. --- configure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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