The BSDs work the same way Linux does except on FreeBSD the
configuration file is called /etc/ld-elf.so.conf and you run 'ldconfig
-elf' after you've changed it.

Your distribution owns /usr and packages not installed through your
distribution's packaging system shouldn't touch it and should default
to /usr/local. And under no circumstances should a makefile be
touching /etc/ld.so.conf. This is just standard UNIX stuff, absolutely
nothing special about ntpd or libaes_siv.

On Sun, Feb 17, 2019 at 10:37 AM Eric S. Raymond <e...@thyrsus.com> wrote:
>
> Hal Murray <hmur...@megapathdsl.net>:
> > > Let us know what work - it should be documented.
> >
> > This is what I used on Linux:
> >
> > echo "/usr/local/lib/" > /etc/ld.so.conf.d/libaes_siv.conf
> > ldconfig
> >
> >
> > This is what I used on NetBSD and FreeBSD.  There is probably a 
> > better/cleaner
> > way, but I wasn't in the mood to go hunting for it.
> >
> > cd /usr/lib/
> > ln -s /usr/local/lib/libaes_siv.a
> > ln -s /usr/local/lib/libaes_siv.so
> > ln -s /usr/local/lib/libaes_siv.so.1
> > ln -s /usr/local/lib/libaes_siv.so.1.0.0
> >
> >
> > NetBSD needed one more:
> > cd /usr/include/
> > ln -s /usr/local/include/aes_siv.h
> >
> >
> > All as root
>
> Hmmm.  Daniel, is there any way to beat cmake into setting PREFIX=/usr/lib?
> That would make all these problems go away.
>
> /me looks
>
> According to
>
> https://stackoverflow.com/questions/6003374/what-is-cmake-equivalent-of-configure-prefix-dir-make-all-install
>
> this might do it:
>
> cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr . && make all install
>
> Hal, please test at least to the point of make -n install.  If this works
> it would be a good recipe to put in INSTALL.
> --
>                 <a href="http://www.catb.org/~esr/";>Eric S. Raymond</a>
>
> My work is funded by the Internet Civil Engineering Institute: 
> https://icei.org
> Please visit their site and donate: the civilization you save might be your 
> own.
>
>
_______________________________________________
devel mailing list
devel@ntpsec.org
http://lists.ntpsec.org/mailman/listinfo/devel

Reply via email to