make: ./libtool: Command not found

Greg_Swift at aotx.uscourts.gov Greg_Swift at aotx.uscourts.gov
Tue Jul 13 13:12:17 UTC 2010


..snip..
> I can do a ./configure, make LIBTOOL= libtool , make install LIBTOOL=
libtool
> and it then installs manualy .. but this defeats the purpose of rpm..
>
> So how can I set LIBTOOL to the correct value in the libjpeg.spec file ?
>
> this is the spec file below ....
..snip..
>
> %build
> %configure --enable-shared --enable-static
>
>
> make libdir=%{_libdir} %{?_smp_mflags}
> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD make test
> LIBTOOL=libtool
> %install
> rm -rf $RPM_BUILD_ROOT
>
> mkdir -p $RPM_BUILD_ROOT/usr/{include,bin}
> mkdir -p $RPM_BUILD_ROOT%{_libdir}
> mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
>
> %makeinstall
> # Work around the broken makefiles...
..snip..

So try changing that section to this:

%build
%configure --enable-shared --enable-static

make libdir=%{_libdir} %{?_smp_mflags} LIBTOOL=libtool
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD make test

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT/usr/{include,bin}
mkdir -p $RPM_BUILD_ROOT%{_libdir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1

make install DESTDIR=$RPM_BUILD_ROOT LIBTOOL=libtool
# Work around the broken makefiles...



-greg



More information about the Rpm-list mailing list