summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-06-28 14:26:40 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-06-28 14:26:40 +0200
commit1c0833268c7179494aecabc5f0fae643715a7a98 (patch)
tree1fd854b6082501bfbb0e1c39840484dd6109249d
parent53d360c9f608103f95b9a2a74f64c9c494ff2333 (diff)
configure: Add linker flags for ncursestest to correct position
Newer versions of GCC expect the linker flags after the object code, so move the ouput of 'pkg-config --libs ncurses' there to not make the test fail even if ncurses is present on the system. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index d977b37..ed1eacd 100755
--- a/configure
+++ b/configure
@@ -113,7 +113,7 @@ void main(void)
}
EOF
- $CC $(pkg-config --cflags --libs ncurses) -o $TMPDIR/ncursestest $TMPDIR/ncursestest.c >> $TMPDIR/config.log 2>&1
+ $CC $(pkg-config --cflags ncurses) -o $TMPDIR/ncursestest $TMPDIR/ncursestest.c $(pkg-config --libs ncurses) >> $TMPDIR/config.log 2>&1
if [ ! -x $TMPDIR/ncursestest ] ; then
echo "[NO]"
MISSING_DEFS=1