Ticket #743: ncurses-static.patch
File ncurses-static.patch, 789 bytes (added by , 21 years ago) |
---|
-
configure.ac
old new 24 24 AM_CONDITIONAL(STATIC_BUILD, test x${enable_static} = xyes) 25 25 if test x${enable_static} = xyes; then 26 26 AC_DEFINE([STATIC_BUILD], [1], [Define if the application is being built as a static executable.]) 27 export LDFLAGS="${LDFLAGS} -static"28 AC_CHECK_LIB([ncurses], [tputs], [tinfo_needed=no], [tinfo_needed=yes] )29 if test x${tinfo_needed} = xyes; then30 AC_CHECK_LIB([tinfo], [tputs], [MAIN_LIBS="${MAIN_LIBS} -ltinfo"], AC_MSG_ERROR[Unable to figure out how to link libncurses.a / libtinfo.a])31 fi32 27 else 33 28 AC_DEFINE_DIR([HANDLERS_DIRECTORY], [libdir/nALFS], [Define to location where the handler shared plugin files are installed.]) 34 29 fi