Best practice for extracting information from a makefile

David Tardon dtardon at redhat.com
Wed Aug 17 05:38:06 UTC 2011


On Tue, Aug 16, 2011 at 03:29:31PM -0500, Richard Shaw wrote:
> On Tue, Aug 16, 2011 at 11:27 AM, Michael Schwendt <mschwendt at gmail.com> wrote:
> > On Tue, 16 Aug 2011 10:38:43 -0500, RS (Richard) wrote:
> >
> >> > cd %{buildroot}%{libdir}
> >> > ldconfig -n $(pwd)
> >> > ln -s %{name}.so.? %{name}.so
> >> > cd -
> >>
> >> Wouldn't that create a symlink of a symlink?
> >
> > That isn't a problem, is it? All that matters is that the final symlink would
> > point at a usable library the build-time linker can load
> 
> No, not a technical problem. Just inelegant :)

If this really bothers you, you can use

ln -s `readlink %{name}.so.?` %{name}.so

D.


More information about the devel mailing list