proper order of libs for static linking

This commit is contained in:
pvalchev 2003-12-31 21:37:10 +00:00
parent 32022a46a0
commit 065ecaecdf

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-configure,v 1.1 2003/12/31 21:37:10 pvalchev Exp $
--- configure.orig 2003-12-31 14:45:16.000000000 -0700
+++ configure 2003-12-31 14:45:17.000000000 -0700
@@ -1781,7 +1781,7 @@ if eval "test \"`echo '$''{'ac_cv_lib_$a
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_save_LIBS="$LIBS"
-LIBS="-ltermcap $LIBS"
+LIBS="$LIBS -ltermcap"
cat > conftest.$ac_ext <<EOF
#line 1787 "configure"
#include "confdefs.h"
@@ -1815,7 +1815,7 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_l
#define $ac_tr_lib 1
EOF
- LIBS="-ltermcap $LIBS"
+ LIBS="$LIBS -ltermcap"
else
echo "$ac_t""no" 1>&6