[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Autoconf-patches] Re: libelf and fileutils
From: |
Jim Meyering |
Subject: |
[Autoconf-patches] Re: libelf and fileutils |
Date: |
18 Sep 2000 08:45:02 +0200 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) Emacs/20.6.92 |
| Why have fileutils started linking against libelf? Is it possible to add
| a configure flag to disable that?
Thanks for noticing and reporting it!
Here's the patch:
* getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of LIBS.
Otherwise, everyone ends up linking with -lelf for some configurations.
Reported by Mike Stone.
Index: m4/getloadavg.m4
===================================================================
RCS file: /fetish/fileutils/m4/getloadavg.m4,v
retrieving revision 1.8
retrieving revision 1.9
diff -b -B -u -r1.8 -r1.9
--- m4/getloadavg.m4 2000/06/17 18:33:50 1.8
+++ m4/getloadavg.m4 2000/09/18 06:37:01 1.9
@@ -99,5 +99,7 @@
else
GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
fi
+LIBS=$ac_save_LIBS
+
AC_SUBST(GETLOADAVG_LIBS)dnl
])# AC_FUNC_GETLOADAVG
And since my getloadavg.m4 is very similar to what's in autoconf's
acfunctions.m4, the latter needs the patch, too. Here it is:
Index: acfunctions.m4
===================================================================
RCS file: /cvs/autoconf/acfunctions.m4,v
retrieving revision 1.7
diff -u -p -r1.7 acfunctions.m4
--- acfunctions.m4 2000/09/12 13:59:55 1.7
+++ acfunctions.m4 2000/09/18 06:42:16
@@ -553,6 +553,8 @@ if test "x$ac_save_LIBS" = x; then
else
GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
fi
+LIBS=$ac_save_LIBS
+
AC_SUBST(GETLOADAVG_LIBS)dnl
])# AC_FUNC_GETLOADAVG
- [Autoconf-patches] Re: libelf and fileutils,
Jim Meyering <=