git: buildsystem: Fix libfoo.so links for /lib libraries

Francois Tigeot ftigeot at crater.dragonflybsd.org
Mon Apr 14 03:33:55 PDT 2014


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

    buildsystem: Fix libfoo.so links for /lib libraries
    
    * When installing to a non-default location by using DESTDIR on the make
      installworld command line, /usr/lib/libfoo.so links pointed to wrong
      locations
    
    * 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
      libc.so -> /usr/obj/usr/src/world_x86_64/lib/libc.so
    
    * Symlinks locations in the final destination directory must be relative to
      the target world filesystem namespace
      libc.so -> /lib/libc.so
    
    * 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/bsd.lib.mk | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/aa8dd8466606c653e3695b38e32609a2608ff112


-- 
DragonFly BSD source repository



More information about the Commits mailing list