summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/mkcwproject
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-05-23 22:34:18 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-05-23 22:34:18 (GMT)
commitb66e1a3dd2ca81c793c84ab436e08670980ac73d (patch)
tree270f5223e0a54bd0cabeb036b60c7cfc5966487d /Mac/Lib/mkcwproject
parentdc74568782914abf5c54c9579246f950bb714378 (diff)
downloadcpython-b66e1a3dd2ca81c793c84ab436e08670980ac73d.zip
cpython-b66e1a3dd2ca81c793c84ab436e08670980ac73d.tar.gz
cpython-b66e1a3dd2ca81c793c84ab436e08670980ac73d.tar.bz2
Allow the shared library initialization routine to be overridden with an initialize=xxx argument.
Should fix #492465.
Diffstat (limited to 'Mac/Lib/mkcwproject')
-rw-r--r--Mac/Lib/mkcwproject/cwxmlgen.py2
-rw-r--r--Mac/Lib/mkcwproject/template-carbon/template.prj.xml2
-rw-r--r--Mac/Lib/mkcwproject/template-ppc/template.prj.xml2
3 files changed, 4 insertions, 2 deletions
diff --git a/Mac/Lib/mkcwproject/cwxmlgen.py b/Mac/Lib/mkcwproject/cwxmlgen.py
index e80cfa7..0ffe12f 100644
--- a/Mac/Lib/mkcwproject/cwxmlgen.py
+++ b/Mac/Lib/mkcwproject/cwxmlgen.py
@@ -53,6 +53,8 @@ class ProjectBuilder:
dict['stdlibraryflags'] = 'Debug'
if not dict.has_key('libraryflags'):
dict['libraryflags'] = 'Debug'
+ if not dict.has_key('initialize'):
+ dict['initialize'] = '__initialize'
if not dict.has_key('mac_sysprefixtype'):
if os.path.isabs(dict['sysprefix']):
dict['mac_sysprefixtype'] = 'Absolute'
diff --git a/Mac/Lib/mkcwproject/template-carbon/template.prj.xml b/Mac/Lib/mkcwproject/template-carbon/template.prj.xml
index d0550f5..5c426a1 100644
--- a/Mac/Lib/mkcwproject/template-carbon/template.prj.xml
+++ b/Mac/Lib/mkcwproject/template-carbon/template.prj.xml
@@ -558,7 +558,7 @@
<SETTING><NAME>MWLinker_PPC_dontdeadstripinitcode</NAME><VALUE>0</VALUE></SETTING>
<SETTING><NAME>MWLinker_PPC_permitmultdefs</NAME><VALUE>0</VALUE></SETTING>
<SETTING><NAME>MWLinker_PPC_linkmode</NAME><VALUE>Fast</VALUE></SETTING>
- <SETTING><NAME>MWLinker_PPC_initname</NAME><VALUE>__initialize</VALUE></SETTING>
+ <SETTING><NAME>MWLinker_PPC_initname</NAME><VALUE>%(initialize)s</VALUE></SETTING>
<SETTING><NAME>MWLinker_PPC_mainname</NAME><VALUE></VALUE></SETTING>
<SETTING><NAME>MWLinker_PPC_termname</NAME><VALUE>__terminate</VALUE></SETTING>
diff --git a/Mac/Lib/mkcwproject/template-ppc/template.prj.xml b/Mac/Lib/mkcwproject/template-ppc/template.prj.xml
index 0c79f67..65ca175 100644
--- a/Mac/Lib/mkcwproject/template-ppc/template.prj.xml
+++ b/Mac/Lib/mkcwproject/template-ppc/template.prj.xml
@@ -549,7 +549,7 @@
<SETTING><NAME>MWLinker_PPC_dontdeadstripinitcode</NAME><VALUE>0</VALUE></SETTING>
<SETTING><NAME>MWLinker_PPC_permitmultdefs</NAME><VALUE>0</VALUE></SETTING>
<SETTING><NAME>MWLinker_PPC_linkmode</NAME><VALUE>Fast</VALUE></SETTING>
- <SETTING><NAME>MWLinker_PPC_initname</NAME><VALUE>__initialize</VALUE></SETTING>
+ <SETTING><NAME>MWLinker_PPC_initname</NAME><VALUE>%(initialize)s</VALUE></SETTING>
<SETTING><NAME>MWLinker_PPC_mainname</NAME><VALUE></VALUE></SETTING>
<SETTING><NAME>MWLinker_PPC_termname</NAME><VALUE>__terminate</VALUE></SETTING>