Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-integ / recipes-extended / collectd / files / collectd-fix-for-LIBPYTHON_LDFLAGS.patch
1 From b619d111a63d83b4d4bfa3f2c6c28cbd94ba874b Mon Sep 17 00:00:00 2001
2 From: Jackie Huang <jackie.huang@windriver.com>
3 Date: Sat, 11 Apr 2020 21:55:08 +0800
4 Subject: [PATCH] fix for LIBPYTHON_LDFLAGS
5
6 There is bug in oe-core's python-native that sysconfig module cat not
7 get the correct Py_ENABLE_SHARED, which causes the "python-config --ldflags"
8 add the prefix/lib/pythonX.Y/config dir which is the static lib dir,
9 here is a workarond to remove the dir, we may need to fix the issue
10 in oe-core later.
11
12 Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
13 ---
14  configure.ac | 2 +-
15  1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/configure.ac b/configure.ac
18 index b5f8e87..8a2d04f 100644
19 --- a/configure.ac
20 +++ b/configure.ac
21 @@ -4641,7 +4641,7 @@ if test "$PYTHON_CONFIG" != ""; then
22    if test $? -ne 0; then
23      with_libpython="no"
24    fi
25 -  LIBPYTHON_LDFLAGS="`${PYTHON_CONFIG} --ldflags`"
26 +  LIBPYTHON_LDFLAGS="`${PYTHON_CONFIG} --ldflags|sed 's/-L.*config //'`"
27    if test $? -ne 0; then
28      with_libpython="no"
29    fi
30 -- 
31 2.7.4
32