From 034986a7ac3723809ba87d81b2b3230df04a1605 Mon Sep 17 00:00:00 2001 From: nakeee Date: Sun, 4 Jan 2009 10:37:10 +0000 Subject: [PATCH] better oprofile detection git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1764 8ced0084-cf51-0410-be5f-012b33b47a6e --- SConstruct | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index c170d54105..e933b18317 100644 --- a/SConstruct +++ b/SConstruct @@ -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: