diff options
author | Evan Martin <martine@danga.com> | 2013-04-15 21:41:10 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2013-04-18 00:15:36 (GMT) |
commit | c5114830b854335c8e7229f28741f1d3fd6c3840 (patch) | |
tree | 91af943e6482824f2a9f9d4c7b81e86df12894c8 | |
parent | 7bf53c69741052e93a8096b1654fbebfc6983fad (diff) | |
download | Ninja-c5114830b854335c8e7229f28741f1d3fd6c3840.zip Ninja-c5114830b854335c8e7229f28741f1d3fd6c3840.tar.gz Ninja-c5114830b854335c8e7229f28741f1d3fd6c3840.tar.bz2 |
fix --profile=pprof on newer ubuntus
The --as-needed default for ld would drop -lprofiler.
-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 |