From 473b58a043489eb7193b99315c7025693b5f66c5 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 1 Feb 2018 19:27:06 -0800 Subject: [PATCH] Set LD_RUN_PATH for wxWidgets part of the build too --- build.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.py b/build.py index fa1efb09..41ed39ac 100755 --- a/build.py +++ b/build.py @@ -1280,6 +1280,12 @@ def cmd_build_wx(options, args): if options.extra_make: build_options.append('--extra_make="%s"' % options.extra_make) + if not isWindows and not isDarwin and not options.no_magic and not options.use_syswx: + # Using $ORIGIN in the rpath will cause the dynamic linker to look + # for shared libraries in a folder relative to the loading binary's + # location. Here we'll use just $ORIGIN so it should look in the same + # folder as the wxPython extension modules. + os.environ['LD_RUN_PATH'] = '$ORIGIN' try: # Import and run the wxWidgets build script