]> granicus.if.org Git - python/commitdiff
Patch #1536908: Add support for AMD64 / OpenBSD.
authorThomas Heller <theller@ctypes.org>
Mon, 14 Aug 2006 16:17:41 +0000 (16:17 +0000)
committerThomas Heller <theller@ctypes.org>
Mon, 14 Aug 2006 16:17:41 +0000 (16:17 +0000)
Remove the -no-stack-protector compiler flag for OpenBSD
as it has been reported to be unneeded.

Modules/_ctypes/libffi/configure
Modules/_ctypes/libffi/configure.ac
Modules/_ctypes/libffi/fficonfig.py.in

index 9eded5a5bef7625bc86308d8df21307fb51102d3..9808384ce5ab67232ab500e94c7c04d86d0fca97 100755 (executable)
@@ -3470,6 +3470,7 @@ fi
 
 TARGETDIR="unknown"
 case "$host" in
+x86_64-*-openbsd*) TARGET=X86_64; TARGETDIR=x86;;
 mips*-*-openbsd*) TARGET=MIPS; TARGETDIR=mips;;
 sparc-*-openbsd*) TARGET=SPARC; TARGETDIR=sparc;;
 sparc64-*-openbsd*) TARGET=SPARC; TARGETDIR=sparc;;
index 384959efbf442e4aff751b4ba940bdc0c766661a..1308034ac19ec8c939baaca35356fc1c07672d14 100644 (file)
@@ -21,6 +21,7 @@ AC_FUNC_MMAP_BLACKLIST
 
 TARGETDIR="unknown"
 case "$host" in
+x86_64-*-openbsd*) TARGET=X86_64; TARGETDIR=x86;;
 mips*-*-openbsd*) TARGET=MIPS; TARGETDIR=mips;;
 sparc-*-openbsd*) TARGET=SPARC; TARGETDIR=sparc;;
 sparc64-*-openbsd*) TARGET=SPARC; TARGETDIR=sparc;;
index 3364049aeb06fde9ba7dbc6998c01fae692b4a65..7a9821691c346d4aa4192f46cb282c25a30faaa9 100644 (file)
@@ -43,6 +43,3 @@ ffi_sources += ffi_platforms['@MKTARGET@']
 ffi_sources = [os.path.join('@srcdir@', f) for f in ffi_sources]
 
 ffi_cflags = '@CFLAGS@'
-# I think this may no longer be needed:
-if sys.platform == "openbsd3":
-    ffi_cflags += " -fno-stack-protector"