mirror of https://github.com/python/cpython.git
Patch #1536908: Add support for AMD64 / OpenBSD.
Remove the -no-stack-protector compiler flag for OpenBSD as it has been reported to be unneeded.
This commit is contained in:
parent
3a457790c7
commit
ef8d513d62
|
@ -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;;
|
||||
|
|
|
@ -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;;
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue