This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: python3-config --ldflags gives a CMP0004 error due to a whitespace
Type: compile error Stage:
Components: Library (Lib) Versions: Python 3.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: kekePower
Priority: normal Keywords: patch

Created on 2018-02-22 23:21 by kekePower, last changed 2022-04-11 14:58 by admin.

Files
File name Uploaded Description Edit
python3-3.6.2-python3-config-LIBPLUSED-cmp0004-error.patch kekePower, 2018-02-22 23:21 python3-3.6.2-python3-config-LIBPLUSED-cmp0004-error.patch
Messages (1)
msg312602 - (view) Author: Stig-Ørjan Smelror (kekePower) * Date: 2018-02-22 23:21
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.
History
Date User Action Args
2022-04-11 14:58:58adminsetgithub: 77095
2018-02-22 23:21:15kekePowercreate