fix --profile=pprof on newer ubuntus

The --as-needed default for ld would drop -lprofiler.
This commit is contained in:
Evan Martin 2013-04-15 14:41:10 -07:00
parent 7bf53c6974
commit c5114830b8

View File

@ -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