# HG changeset patch # User Michael Schloh von Bennewitz # Date 1346517932 -7200 # Node ID 9da33cc654ba46e3232c1979890abc467f08c2b3 # Parent 9d74c60eb90eae23390d21f596e19f7c9b99ab4b Correct the build configuration when including ncurses(3) and readline(3). diff -r 9d74c60eb90e -r 9da33cc654ba python/python.spec --- a/python/python.spec Sat Sep 01 12:17:10 2012 +0200 +++ b/python/python.spec Sat Sep 01 18:45:32 2012 +0200 @@ -133,7 +133,7 @@ -e 's;python{py_version_short};python;g' \ Lib/sysconfig.py %if "%{with_readline}" == "yes" - ( echo "readline readline.c %{l_cppflags} %{l_ldflags} -lreadline -ltermcap" + ( echo "readline readline.c %{l_cppflags} %{l_ldflags} -lreadline" ) >>Modules/Setup.local %endif %if "%{with_db}" == "yes" @@ -173,11 +173,16 @@ ) >>Modules/Setup.local %endif + l_cppflags="%{l_cppflags}" +%if "%{with_curses}" == "yes" + l_cppflags="%{l_cppflags ncurses}" +%endif CC="%{l_prefix}/bin/gcc" \ CXX="%{l_cxx}" \ CFLAGS="%{l_cflags -O}" \ OPT="%{l_cflags -O}" \ CXXFLAGS="%{l_cxxflags -O}" \ + CPPFLAGS="$l_cppflags" \ LDFLAGS="%{l_ldflags}" \ ./configure \ --prefix=%{l_prefix} \