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.

Author kekePower
Recipients kekePower
Date 2018-02-22.23:21:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519341675.65.0.467229070634.issue32914@psf.upfronthosting.co.za>
In-reply-to
Content
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
2018-02-22 23:21:15kekePowersetrecipients: + kekePower
2018-02-22 23:21:15kekePowersetmessageid: <1519341675.65.0.467229070634.issue32914@psf.upfronthosting.co.za>
2018-02-22 23:21:15kekePowerlinkissue32914 messages
2018-02-22 23:21:15kekePowercreate