[New-bugs-announce] [issue32914] python3-config --ldflags gives a CMP0004 error due to a whitespace

Stig-Ørjan Smelror report at bugs.python.org
Thu Feb 22 18:21:15 EST 2018


New submission from Stig-Ørjan Smelror <smelror at gmail.com>:

Hi.

I bumped into an interesting compilation issue when I was compiling ecFlow with Python 3 support.

It turns out that python3-config --ldflags gave me this:
" -L/usr/lib64 -lpython3.6m -lpthread -ldl  -lutil -lm  -Xlinker -export-dynamic"

This caused a CMP0004 error due to the space before -L.

With this patch applied, the command gives me:
"-L/usr/lib64  -lpython3.6m -lpthread -ldl  -lutil -lm  -Xlinker -export-dynamic"

Attached is the patch I made to fix this issue. It's as simple as moving $LIBPLUSED one place so that -L$libdir is first.

----------
components: Library (Lib)
files: python3-3.6.2-python3-config-LIBPLUSED-cmp0004-error.patch
keywords: patch
messages: 312602
nosy: kekePower
priority: normal
severity: normal
status: open
title: python3-config --ldflags gives a CMP0004 error due to a whitespace
type: compile error
versions: Python 3.6
Added file: https://bugs.python.org/file47458/python3-3.6.2-python3-config-LIBPLUSED-cmp0004-error.patch

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32914>
_______________________________________


More information about the New-bugs-announce mailing list