updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / tudu / configure_fix-linking.patch
blob4c52d1bd1260d0d2c451709bbe87a1da7fecf71d
1 --- configure.pristine 2011-04-07 06:57:50.335951023 -0400
2 +++ configure 2011-04-07 06:58:28.422411351 -0400
3 @@ -348,7 +348,7 @@
4 [ -z "${LD_CURSES}" ] && LD_CURSES="-lcurses"; fi
5 if [ "$LD_CURSES" = "" ]; then
6 case "$undefined_variable" in 0|"") echo ; echo "ERROR: There is no curses installed!" >&2 ; echo ; exit 1 ;; esac; fi
7 -LDFLAGS="${LDFLAGS} $LD_CURSES"
8 +LDFLAGS="$LD_CURSES ${LDFLAGS}"
9 printf "checking for WIDEC_CURSES... "
10 echo "#define _XOPEN_SOURCE_EXTENDED" > test.c ; echo "#include<$CURSES_INCLUDE>" >> test.c ; echo "main(){ addwstr(L\"\"); }" >> test.c ; eval \$${COMPILER} ${CXXFLAGS} ${LDFLAGS} test.c >/dev/null 2>&1 ; if [ $? = 0 ]; then WIDEC_CURSES=1; else WIDEC_CURSES=0; fi ; rm test.c
11 if [ "$WIDEC_CURSES" = 1 ]; then