Fix misspelled sys.platform name and misspelled filename.
authorThomas Heller <theller@ctypes.org>
Mon, 2 Jun 2008 18:41:30 +0000 (18:41 +0000)
committerThomas Heller <theller@ctypes.org>
Mon, 2 Jun 2008 18:41:30 +0000 (18:41 +0000)
Modules/_ctypes/libffi/fficonfig.py.in
setup.py

index f5f3810b0d91d63926865c7920275b11a2368d97..10293273588b1be8ccbfd0b4fec931af5123e389 100644 (file)
@@ -25,7 +25,7 @@ ffi_platforms = {
     'SH64': ['src/sh64/sysv.S', 'src/sh64/ffi.c'],
     'PA': ['src/pa/linux.S', 'src/pa/ffi.c'],
     'PA_LINUX': ['src/pa/linux.S', 'src/pa/ffi.c'],
-    'PA_HPUX': ['src/pa/hpux32.s', 'src/pa/ffi.c'],
+    'PA_HPUX': ['src/pa/hpux32.S', 'src/pa/ffi.c'],
 }
 
 ffi_srcdir = '@srcdir@'
index 6173ab24a9a8474c3c32757cbec1f0cd057fab8b..136e0a1add8b850c5b05c2bd1a57618c78f011cc 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1607,7 +1607,7 @@ class PyBuildExt(build_ext):
             # finding some -z option for the Sun compiler.
             extra_link_args.append('-mimpure-text')
 
-        elif sys.platform.startswith('hpux'):
+        elif sys.platform.startswith('hp-ux'):
             extra_link_args.append('-fPIC')
 
         ext = Extension('_ctypes',