[Python-checkins] CVS: python/dist/src setup.py,1.46,1.47

Martin v. L?wis loewis@users.sourceforge.net
Fri, 10 Aug 2001 01:56:19 -0700


Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv15983

Modified Files:
	setup.py 
Log Message:
Get OPT from the environment to build the CCSHARED command.
Fixes the problem reported in bug #438786.


Index: setup.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/setup.py,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** setup.py	2001/08/08 00:36:53	1.46
--- setup.py	2001/08/10 08:56:17	1.47
***************
*** 139,144 ****
          # compilers
          if compiler is not None:
!             (ccshared,) = sysconfig.get_config_vars('CCSHARED')
!             args['compiler_so'] = compiler + ' ' + ccshared
          if linker_so is not None:
              args['linker_so'] = linker_so + ' -shared'
--- 139,144 ----
          # compilers
          if compiler is not None:
!             (ccshared,opt) = sysconfig.get_config_vars('CCSHARED','OPT')
!             args['compiler_so'] = compiler + ' ' + opt + ' ' + ccshared
          if linker_so is not None:
              args['linker_so'] = linker_so + ' -shared'