RHEL-6 python is pre pkg-config

f41
Caolán McNamara 12 years ago
parent 3d4af2ea59
commit 13644791ee

@ -1070,8 +1070,13 @@ export CXXFLAGS=$ARCH_FLAGS
%if ! 0%{libo_python3} %if ! 0%{libo_python3}
export PYTHON=%{_bindir}/python export PYTHON=%{_bindir}/python
%if 0%{?fedora} || 0%{?rhel} >= 7
export PYTHON_CFLAGS=`pkg-config --cflags python` export PYTHON_CFLAGS=`pkg-config --cflags python`
export PYTHON_LIBS=`pkg-config --libs python` export PYTHON_LIBS=`pkg-config --libs python`
%else
export PYTHON_CFLAGS=`python-config --cflags python`
export PYTHON_LIBS=`python-config --libs python`
%endif
%endif %endif
# TODO: do we still need this? Perhaps some old patch touches # TODO: do we still need this? Perhaps some old patch touches

Loading…
Cancel
Save