Ticket #743: ncurses-static.patch

File ncurses-static.patch, 789 bytes (added by barbos@…, 21 years ago)

static compilation for splitted ncurses

  • configure.ac

    old new  
    2424AM_CONDITIONAL(STATIC_BUILD, test x${enable_static} = xyes)
    2525if test x${enable_static} = xyes; then
    2626   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; then
    30       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    fi
    3227else
    3328   AC_DEFINE_DIR([HANDLERS_DIRECTORY], [libdir/nALFS], [Define to location where the handler shared plugin files are installed.])
    3429fi