diff options
author | doko@ubuntu.com <doko@ubuntu.com> | 2014-10-02 02:00:14 +0200 |
---|---|---|
committer | doko@ubuntu.com <doko@ubuntu.com> | 2014-10-02 02:00:14 +0200 |
commit | d486c43d8d5ddf6d8c31e37fa5525aac7b960059 (patch) | |
tree | a6858aa6bfe6433de255253bcf2c4c563ec33613 /Misc/python-config.in | |
parent | 1de0ba2cf57a2c0f18a1ef4da0641bf9b073ba1e (diff) | |
download | cpython-git-d486c43d8d5ddf6d8c31e37fa5525aac7b960059.tar.gz |
- Issue #18096: Fix library order returned by python-config.
Diffstat (limited to 'Misc/python-config.in')
-rw-r--r-- | Misc/python-config.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Misc/python-config.in b/Misc/python-config.in index 0b9b5dc441..e13da7543c 100644 --- a/Misc/python-config.in +++ b/Misc/python-config.in @@ -47,8 +47,9 @@ for opt in opt_flags: print(' '.join(flags)) elif opt in ('--libs', '--ldflags'): - libs = getvar('LIBS').split() + getvar('SYSLIBS').split() - libs.append('-lpython' + pyver + sys.abiflags) + libs = ['-lpython' + pyver + sys.abiflags] + libs += getvar('LIBS').split() + libs += getvar('SYSLIBS').split() # add the prefix/lib/pythonX.Y/config dir, but only if there is no # shared library in prefix/lib/. if opt == '--ldflags': |