mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
Merge pull request #893 from RobinD42/fix-darwin-linking
Fix darwin linking
(cherry picked from commit de143e9d83)
This commit is contained in:
17
CHANGES.rst
17
CHANGES.rst
@@ -42,6 +42,23 @@ Other changes in this release:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
4.0.3 ""
|
||||||
|
---------------------------
|
||||||
|
* ??-June-2018
|
||||||
|
|
||||||
|
PyPI: https://pypi.org/project/wxPython/4.0.3
|
||||||
|
Extras: https://extras.wxPython.org/wxPython4/extras/
|
||||||
|
Pip: ``pip install wxPython==4.0.3``
|
||||||
|
|
||||||
|
Changes in this release include the following:
|
||||||
|
|
||||||
|
* Fixed a linking problem on macOS. The new waf added an explicit link to the
|
||||||
|
Python shared library which menat that it would try to load it at runtime,
|
||||||
|
even if a different Python (such as Anaconda, EDM or Homebrew) was used to
|
||||||
|
import wxPython. This, of course, caused runtime errors.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
4.0.2 "Cute as a June bug!"
|
4.0.2 "Cute as a June bug!"
|
||||||
---------------------------
|
---------------------------
|
||||||
* 16-June-2018
|
* 16-June-2018
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ class Configuration(object):
|
|||||||
# Combine with wx's ld command and stash it in the env
|
# Combine with wx's ld command and stash it in the env
|
||||||
# where distutils will get it later.
|
# where distutils will get it later.
|
||||||
LDSHARED = self.getWxConfigValue('--ld').replace(' -o', '') + ' ' + LDSHARED
|
LDSHARED = self.getWxConfigValue('--ld').replace(' -o', '') + ' ' + LDSHARED
|
||||||
os.environ["LDSHARED"] = LDSHARED
|
self.LDSHARED = os.environ["LDSHARED"] = LDSHARED
|
||||||
|
|
||||||
|
|
||||||
# wxGTK settings
|
# wxGTK settings
|
||||||
|
|||||||
14
wscript
14
wscript
@@ -308,13 +308,25 @@ def configure(conf):
|
|||||||
for key in flags:
|
for key in flags:
|
||||||
_cleanFlags(conf, key)
|
_cleanFlags(conf, key)
|
||||||
|
|
||||||
|
# Waf 2 is now calling pythonX.Y-config for fetching libs and flags,
|
||||||
|
# and it may be outputing flags that will cause an explicit link to
|
||||||
|
# Python's lib, which we don't want as that could tie us to that
|
||||||
|
# speicifc Python instance instead of the one that is loading the
|
||||||
|
# wxPython extension modules. That's okay for PYEMBED but not for PYEXT
|
||||||
|
# configs.
|
||||||
|
if isDarwin:
|
||||||
|
conf.env.LIBPATH_PYEXT = []
|
||||||
|
conf.env.LIB_PYEXT = []
|
||||||
|
|
||||||
|
|
||||||
# Use the same compilers that wxWidgets used
|
# Use the same compilers that wxWidgets used
|
||||||
if cfg.CC:
|
if cfg.CC:
|
||||||
conf.env.CC = cfg.CC.split()
|
conf.env.CC = cfg.CC.split()
|
||||||
if cfg.CXX:
|
if cfg.CXX:
|
||||||
conf.env.CXX = cfg.CXX.split()
|
conf.env.CXX = cfg.CXX.split()
|
||||||
|
if cfg.LDSHARED:
|
||||||
|
conf.env.LINK_CC = cfg.LDSHARED.split()
|
||||||
|
conf.env.LINK_CXX = cfg.LDSHARED.split()
|
||||||
|
|
||||||
# Some Mac-specific stuff
|
# Some Mac-specific stuff
|
||||||
if isDarwin:
|
if isDarwin:
|
||||||
|
|||||||
Reference in New Issue
Block a user