Re: make: ./libtool: Command not found

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



..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

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list


[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux