From aa719e845c4469f6741c2f1ab15f4bc7e930087f Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 28 Oct 2009 15:42:24 +0000 Subject: [PATCH] Workaround OSX p3dcert crash in Wx by compiling p3dcert with optimize level 2 --- makepanda/makepanda.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index 40f465426d..c9d4b71708 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -3233,9 +3233,12 @@ if (RTDIST or RUNTIME): if (PkgSkip("OPENSSL")==0 and RTDIST): OPTS=['DIR:direct/src/plugin', 'DIR:panda/src/express', 'OPENSSL', 'WX'] + if (sys.platform=="darwin"): OPTS += ['OPT:2'] TargetAdd('plugin_p3dCert.obj', opts=OPTS, input='p3dCert.cxx') TargetAdd('p3dcert.exe', input='plugin_p3dCert.obj') - TargetAdd('p3dcert.exe', opts=['NOSTRIP', 'OPENSSL', 'WX', 'CARBON', 'WINOLE', 'WINOLEAUT', 'WINUSER', 'ADVAPI', 'WINSHELL', 'WINCOMCTL', 'WINGDI', 'WINCOMDLG']) + OPTS=['NOSTRIP', 'OPENSSL', 'WX', 'CARBON', 'WINOLE', 'WINOLEAUT', 'WINUSER', 'ADVAPI', 'WINSHELL', 'WINCOMCTL', 'WINGDI', 'WINCOMDLG'] + if (sys.platform=="darwin"): OPTS += ['OPT:2'] + TargetAdd('p3dcert.exe', opts=OPTS) # # DIRECTORY: direct/src/plugin_npapi/