Maynard Johnson wrote: > Hello, > We recently released OProfile 0.9.4, which for the first time includes > some libraries that must be installed along with the usual OProfile > tools. We introduced the use of libtool in our project to support the > installation of these new OProfile libraries. Now, a user has reported > the following error when building OProfile: > > ./configure --with-kernel-support --with-binutils=/my-binutils > (NOTE: If you don't have an alternate binutils to point to, > specifying --with-binutils=/usr will give same failure)
Your configure script adds spaces after -I and -L before the directory. GCC is ok with this, libtool not so much. Peter -- Peter O'Gorman http://pogma.com
--- configure.in~ 2008-07-17 18:04:22.000000000 -0500 +++ configure.in 2008-07-31 14:13:35.000000000 -0500 @@ -39,9 +39,9 @@ if test "$CXXFLAGS" = ""; then CXXFLAGS="-g -O2" fi - CFLAGS="$CFLAGS -I $BINUTILSDIR/include" - CXXFLAGS="$CXXFLAGS -I $BINUTILSDIR/include" - LDFLAGS="$LDFLAGS -L $BINUTILSDIR/lib -Xlinker -R -Xlinker $BINUTILSDIR/lib" + CFLAGS="$CFLAGS -I$BINUTILSDIR/include" + CXXFLAGS="$CXXFLAGS -I$BINUTILSDIR/include" + LDFLAGS="$LDFLAGS -L$BINUTILSDIR/lib -Xlinker -R -Xlinker $BINUTILSDIR/lib" fi AC_ARG_WITH(gcc, @@ -50,7 +50,7 @@ if test "$GCCDIR" != ""; then CC="$GCCDIR/bin/gcc" CXX="$GCCDIR/bin/g++" - LDFLAGS="$LDFLAGS -L $GCCDIR/lib -Xlinker -R -Xlinker $GCCDIR/lib" + LDFLAGS="$LDFLAGS -L$GCCDIR/lib -Xlinker -R -Xlinker $GCCDIR/lib" fi AC_PROG_CC
_______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool