From a1312da859075570542ec7ca0a50b8a39af2cd06 Mon Sep 17 00:00:00 2001 From: Soren Jorvang Date: Thu, 28 Oct 2010 17:00:59 +0000 Subject: [PATCH] Re-establish /usr/lib priority over /usr/local/lib using -Z instead of -search_paths_first which doesn't play well with --sysroot. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6317 8ced0084-cf51-0410-be5f-012b33b47a6e --- SConstruct | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 31924f73c0..93674bac99 100644 --- a/SConstruct +++ b/SConstruct @@ -130,9 +130,10 @@ if sys.platform == 'darwin': env['FRAMEWORKS'] += ['AppKit', 'CoreFoundation', 'CoreServices'] env['FRAMEWORKS'] += ['AudioUnit', 'CoreAudio'] env['FRAMEWORKS'] += ['IOBluetooth', 'IOKit', 'OpenGL'] + env['LIBPATH'] += ['/usr/lib'] env['LIBS'] = ['iconv', 'SDL'] env['LINKFLAGS'] += ccld - env['LINKFLAGS'] += ['-Wl,-search_paths_first'] + env['LINKFLAGS'] += ['-Wl,-Z', '-F/System/Library/Frameworks'] if platform.mac_ver()[0] < '10.6.0': env['HAVE_OPENCL'] = 0