From 5c5027673d741057a7a21acddeeaeb851a4595be Mon Sep 17 00:00:00 2001 From: Adam Spiers Date: Sat, 19 Nov 2016 14:37:34 +0000 Subject: [PATCH] fix compile on SUSE If we have both 64-bit and 32-bit versions of ncurses installed, currently the 32-bit libraries in /lib get found first, so gcc fails to link against them, and ./configure ends up thinking that we're missing ncurses libraries. So scan /lib64 before /lib. There might be a better fix, but hopefully it will avoid breaking 32-bit distributions and distributions which have 64-bit libraries in /lib. --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index a3f818bb..d7ac3bde 100644 --- a/configure.ac +++ b/configure.ac @@ -13,12 +13,12 @@ for defdir in /opt/local /usr/local /usr /; do CPPFLAGS="$CPPFLAGS -I$defdir/include" fi - if test -d "$defdir/lib"; then - LDFLAGS="$LDFLAGS -L$defdir/lib" - fi if test -d "$defdir/lib64"; then LDFLAGS="$LDFLAGS -L$defdir/lib64" fi + if test -d "$defdir/lib"; then + LDFLAGS="$LDFLAGS -L$defdir/lib" + fi if test -d "$defdir/lib/x86_64-linux-gnu"; then LDFLAGS="$LDFLAGS -L$defdir/lib/x86_64-linux-gnu"