python38/python3-3.6.2-python3-config-LIBPLUSED-cmp0004-error.patch

27 lines
984 B
Diff
Raw Permalink Normal View History

2019-12-19 12:27:39 +03:00
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"