better oprofile detection

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1764 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2009-01-04 10:37:10 +00:00
parent 952dfcd610
commit 034986a7ac
1 changed files with 3 additions and 2 deletions

View File

@ -269,8 +269,9 @@ conf.Define('HAVE_COCOA', env['HAVE_COCOA'])
# profile
env['USE_OPROFILE'] = 0
if (flavour == 'prof'):
env['LIBPATH'] += [ '/usr/lib/oprofile' ]
env['RPATH'] += [ '/usr/lib/oprofile' ]
proflibs = [ '/usr/lib/oprofile', '/usr/local/lib/oprofile' ]
env['LIBPATH'].append(proflibs)
env['RPATH'].append(proflibs)
if conf.CheckPKG('opagent'):
env['USE_OPROFILE'] = 1
else: