Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
10d4405
patch configure for VxWorks
kuhlenough Sep 15, 2017
9d53ef2
Any version of python should be OK for cross build.
kuhlenough Sep 15, 2017
db2e0e8
undef DATE TIME for VxWorks
kuhlenough Sep 17, 2017
cb3aa97
limited signal feilds in VxWorks
kuhlenough Sep 17, 2017
de480ac
Perliminary - Get some of the extension modules compiling on VxWorks
kuhlenough Sep 22, 2017
5bfa35c
VxWorks does not have "timezone" and daylight "constants"
kuhlenough Sep 22, 2017
eeb74cf
Update some extension modules to compile on VxWorks
kuhlenough Sep 25, 2017
f6efb4e
setup.py complies all VxWorks compatible modules
kuhlenough Sep 25, 2017
9f5f589
Avoid duplicate macro definition
kuhlenough Sep 27, 2017
3196b82
extra include in faulthandler.c
kuhlenough Sep 28, 2017
a661fb2
fix some warnings with unused functions and macro re-def
kuhlenough Oct 3, 2017
b37d2ee
Add detection for oddly named VxWorks OPENSSL and HASH libraries
kuhlenough Oct 3, 2017
674d078
move configure changes into configure.ac
kuhlenough Oct 11, 2017
7256ca2
If build is configure'd for static, propigate to Makefile
kuhlenough Oct 17, 2017
69010f4
remove gethostbyname_r, link fails, missing system call
kuhlenough Oct 17, 2017
d1c19f9
semicolon as path separator
kuhlenough Oct 23, 2017
3562186
default to UTF-8 (like Android)
kuhlenough Oct 23, 2017
4531ba8
sort out duplicates flags
kuhlenough Oct 24, 2017
ed10017
hardwire encoding for VxWorks
kuhlenough Oct 24, 2017
4d7dbdd
Revert "sort out duplicates flags"
kuhlenough Oct 28, 2017
56a57ee
all doesn't include shared if static build
kuhlenough Oct 28, 2017
e02bcab
bpo-31904 : Python should support VxWorks RTOS
kuhlenough Sep 15, 2017
f0b0a71
Merge branch 'master' of https://github.com/kuhlenough/cpython
kuhlenough Oct 30, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add detection for oddly named VxWorks OPENSSL and HASH libraries
  • Loading branch information
kuhlenough committed Oct 3, 2017
commit b37d2eefe541bc0156315d4a22c9dd3f086333bd
34 changes: 26 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,20 +872,31 @@ def detect_modules(self):
['/usr/kerberos/include'])
if krb5_h:
ssl_incs += krb5_h
ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
if host_platform == 'vxworks':
ssl_libs = find_library_file(self.compiler, 'OPENSSL',lib_dirs, [] )
if (ssl_incs is not None and
ssl_libs is not None):
exts.append( Extension('_ssl', ['_ssl.c'],
include_dirs = ssl_incs,
library_dirs = ssl_libs,
libraries = ['OPENSSL', 'HASH'],
depends = ['socketmodule.h']), )
else:
missing.append('_ssl')
else:
ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
['/usr/local/ssl/lib',
'/usr/contrib/ssl/lib/'
] )

if (ssl_incs is not None and
ssl_libs is not None):
exts.append( Extension('_ssl', ['_ssl.c'],
if (ssl_incs is not None and
ssl_libs is not None):
exts.append( Extension('_ssl', ['_ssl.c'],
include_dirs = ssl_incs,
library_dirs = ssl_libs,
libraries = ['ssl', 'crypto'],
depends = ['socketmodule.h']), )
else:
missing.append('_ssl')
else:
missing.append('_ssl')

# find out which version of OpenSSL we have
openssl_ver = 0
Expand Down Expand Up @@ -919,11 +930,18 @@ def detect_modules(self):
if have_usable_openssl:
# The _hashlib module wraps optimized implementations
# of hash functions from the OpenSSL library.
exts.append( Extension('_hashlib', ['_hashopenssl.c'],
if host_platform != 'vxworks':
exts.append( Extension('_hashlib', ['_hashopenssl.c'],
depends = ['hashlib.h'],
include_dirs = ssl_incs,
library_dirs = ssl_libs,
libraries = ['ssl', 'crypto']) )
else :
exts.append( Extension('_hashlib', ['_hashopenssl.c'],
depends = ['hashlib.h'],
include_dirs = ssl_incs,
library_dirs = ssl_libs,
libraries = ['OPENSSL', 'HASH']) )
else:
print("warning: openssl 0x%08x is too old for _hashlib" %
openssl_ver)
Expand Down