[ctypes-commit] ctypes setup.py,1.105,1.106
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2004-10-20 15:51:06
|
Update of /cvsroot/ctypes/ctypes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1035 Modified Files: setup.py Log Message: Whitespace cleanup. Use CFLAGS=-fno-stack-protector when building libffi on OpenBSD. Index: setup.py =================================================================== RCS file: /cvsroot/ctypes/ctypes/setup.py,v retrieving revision 1.105 retrieving revision 1.106 diff -C2 -d -r1.105 -r1.106 *** setup.py 14 Oct 2004 13:13:30 -0000 1.105 --- setup.py 20 Oct 2004 15:50:52 -0000 1.106 *************** *** 255,259 **** ext.include_dirs.append(incdir_2) ext.library_dirs.append(libdir) ! return 1 def build_libffi_static(self): --- 255,259 ---- ext.include_dirs.append(incdir_2) ext.library_dirs.append(libdir) ! return 1 def build_libffi_static(self): *************** *** 274,281 **** mkpath(build_dir) ! config_args = ["--disable-shared", ! "--enable-static", ! "--enable-multilib=no", ! "--prefix='%s'" % inst_dir, ] --- 274,281 ---- mkpath(build_dir) ! config_args = ["--disable-shared", ! "--enable-static", ! "--enable-multilib=no", ! "--prefix='%s'" % inst_dir, ] *************** *** 285,289 **** --- 285,293 ---- print 'Building static FFI library:' print cmd + if sys.platform == "openbsd3": + os.environ["CFLAGS"] = "-fno-stack-protector" res = os.system(cmd) + if sys.platform == "openbsd3": + del os.environ["CFLAGS"] if res: print "Failed" |