Correct the build configuration when including ncurses(3) and readline(3).

Sat, 01 Sep 2012 18:45:32 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 01 Sep 2012 18:45:32 +0200
changeset 654
9da33cc654ba
parent 653
9d74c60eb90e
child 655
57a8260ef460

Correct the build configuration when including ncurses(3) and readline(3).

python/python.spec file | annotate | diff | comparison | revisions
     1.1 --- a/python/python.spec	Sat Sep 01 12:17:10 2012 +0200
     1.2 +++ b/python/python.spec	Sat Sep 01 18:45:32 2012 +0200
     1.3 @@ -133,7 +133,7 @@
     1.4          -e 's;python{py_version_short};python;g' \
     1.5          Lib/sysconfig.py
     1.6  %if "%{with_readline}" == "yes"
     1.7 -    ( echo "readline readline.c %{l_cppflags} %{l_ldflags} -lreadline -ltermcap"
     1.8 +    ( echo "readline readline.c %{l_cppflags} %{l_ldflags} -lreadline"
     1.9      ) >>Modules/Setup.local
    1.10  %endif
    1.11  %if "%{with_db}" == "yes"
    1.12 @@ -173,11 +173,16 @@
    1.13      ) >>Modules/Setup.local
    1.14  %endif
    1.15  
    1.16 +    l_cppflags="%{l_cppflags}"
    1.17 +%if "%{with_curses}" == "yes"
    1.18 +    l_cppflags="%{l_cppflags ncurses}"
    1.19 +%endif
    1.20      CC="%{l_prefix}/bin/gcc" \
    1.21      CXX="%{l_cxx}" \
    1.22      CFLAGS="%{l_cflags -O}" \
    1.23      OPT="%{l_cflags -O}" \
    1.24      CXXFLAGS="%{l_cxxflags -O}" \
    1.25 +    CPPFLAGS="$l_cppflags" \
    1.26      LDFLAGS="%{l_ldflags}" \
    1.27      ./configure \
    1.28          --prefix=%{l_prefix} \

mercurial