mirror of
https://abf.rosa.ru/djam/python3.10.git
synced 2025-02-23 16:32:54 +00:00
27 lines
984 B
Diff
27 lines
984 B
Diff
![]() |
Author: Stig-Ørjan Smelror <smelror@gmail.com>
|
||
|
Date: 2018-02-23
|
||
|
Subject: Encountered CMP0004 error
|
||
|
Description: While compiling ecFlow with Python 3 support I encountered
|
||
|
a CMP0004 error:
|
||
|
|
||
|
Target "xxxx" links to item " -L/usr/lib64 -lpython3" which has
|
||
|
leading or trailing whitespace. This is now an error according to policy
|
||
|
CMP0004.
|
||
|
|
||
|
The cause of this error is that $LIBPLUSED is not always set.
|
||
|
The fix is to move this to the second place.
|
||
|
|
||
|
Index: Python-3.7.4/Misc/python-config.sh.in
|
||
|
===================================================================
|
||
|
--- a/Misc/python-config.sh.in 2019-07-08 20:03:50.000000000 +0200
|
||
|
+++ b/Misc/python-config.sh.in 2019-07-09 18:43:29.420421542 +0200
|
||
|
@@ -92,7 +92,7 @@ do
|
||
|
if [ "$PY_ENABLE_SHARED" = "0" ] ; then
|
||
|
LIBPLUSED="-L$LIBPL"
|
||
|
fi
|
||
|
- echo "$LIBPLUSED -L$libdir $LIBS"
|
||
|
+ echo "-L$libdir $LIBPLUSED $LIBS"
|
||
|
;;
|
||
|
--extension-suffix)
|
||
|
echo "$SO"
|