git: buildsystem: Fix links for /lib libraries

Francois Tigeot ftigeot at
Mon Apr 14 03:33:55 PDT 2014

commit aa8dd8466606c653e3695b38e32609a2608ff112
Author: François Tigeot <ftigeot at>
Date:   Mon Apr 14 12:20:43 2014 +0200

    buildsystem: Fix links for /lib libraries
    * When installing to a non-default location by using DESTDIR on the make
      installworld command line, /usr/lib/ links pointed to wrong
    * DESTDIR is used both as an installworld parameter and internally by the
      build system and these two cases expect different behaviors
    * Symlinks locations in /usr/obj must be relative to the host (builder)
      filesystem namespace -> /usr/obj/usr/src/world_x86_64/lib/
    * Symlinks locations in the final destination directory must be relative to
      the target world filesystem namespace -> /lib/
    * The symlinks themselves must be absolute in order to not break
      installations where /usr is a symlink
    Inspired-by: FreeBSD's historical transition to /lib

Summary of changes:
 Makefile.inc1       | 2 ++
 share/mk/ | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

DragonFly BSD source repository

More information about the Commits mailing list