projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6fcea27
)
link statically against libpython in BuildExecutable (hack to make it work if libpyth...
author
Stefan Behnel
<scoder@users.berlios.de>
Fri, 22 Apr 2011 21:03:58 +0000
(23:03 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Fri, 22 Apr 2011 21:03:58 +0000
(23:03 +0200)
Cython/Build/BuildExecutable.py
patch
|
blob
|
history
diff --git
a/Cython/Build/BuildExecutable.py
b/Cython/Build/BuildExecutable.py
index 7b9c79faedeeeb67ebe47f6de2827f04017ae46e..fa0d20d7d99a6f152e4b497e3e337577fea87440 100755
(executable)
--- a/
Cython/Build/BuildExecutable.py
+++ b/
Cython/Build/BuildExecutable.py
@@
-20,8
+20,6
@@
INCDIR = sysconfig.get_python_inc()
LIBDIR1 = get_config_var('LIBDIR')
LIBDIR2 = get_config_var('LIBPL')
PYLIB = get_config_var('LIBRARY')
LIBDIR1 = get_config_var('LIBDIR')
LIBDIR2 = get_config_var('LIBPL')
PYLIB = get_config_var('LIBRARY')
-if PYLIB:
- PYLIB = '-l%s' % PYLIB[3:-2]
CC = get_config_var('CC')
CFLAGS = get_config_var('CFLAGS') + ' ' + os.environ.get('CFLAGS', '')
CC = get_config_var('CC')
CFLAGS = get_config_var('CFLAGS') + ' ' + os.environ.get('CFLAGS', '')
@@
-66,7
+64,8
@@
def runcmd(cmd, shell=True):
sys.exit(returncode)
def clink(basename):
sys.exit(returncode)
def clink(basename):
- runcmd([LINKCC, '-o', basename, basename+'.o', '-L'+LIBDIR1, '-L'+LIBDIR2, PYLIB]
+ runcmd([LINKCC, '-o', basename, basename+'.o', '-L'+LIBDIR1, '-L'+LIBDIR2,
+ os.path.join(LIBDIR1, PYLIB)]
+ LIBS.split() + SYSLIBS.split() + LINKFORSHARED.split())
def ccompile(basename):
+ LIBS.split() + SYSLIBS.split() + LINKFORSHARED.split())
def ccompile(basename):