diff -purN ncurses-5.7+20100313/configure ncurses_patched/configure --- ncurses-5.7+20100313/configure 2010-03-14 05:37:27.000000000 +0000 +++ ncurses_patched/configure 2010-06-30 10:39:52.578916862 +0000 @@ -17641,16 +17641,6 @@ echo "${ECHO_T}$CXX_LIB_SUFFIX" >&6 fi -# do not want -ldl in build except as needed for -lncurses dependency -if test "$with_dlsym" = yes ; then -if test $DFT_LWR_MODEL = shared || \ - test $DFT_LWR_MODEL = libtool ; then - -# remove dl library from $LIBS -LIBS=`echo "$LIBS" | sed -e 's/-ldl[ ]//g' -e 's/-ldl$//'` - -fi -fi ### Set up low-level terminfo dependencies for makefiles. # TICS_LIST and TINFO_LIST are needed to build libtic.so and libterm.so, but diff -purN ncurses-5.7+20100313/debian/rules ncurses_patched/debian/rules --- ncurses-5.7+20100313/debian/rules 2010-06-30 10:35:29.000000000 +0000 +++ ncurses_patched/debian/rules 2010-06-30 10:10:26.855622074 +0000 @@ -105,7 +105,7 @@ CONFARGS = --prefix=/usr \ --with-ticlib ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) -CONFARGS += --with-build-cc=gcc --host=$(DEB_HOST_GNU_TYPE) +CONFARGS += --with-build-cc=gcc --with-build-cflags=-D_GNU_SOURCE --host=$(DEB_HOST_GNU_TYPE) endif # Files for /lib/terminfo.