Subject: soc zfs: and self-referencing symlinks
To: None <tech-toolchain@netbsd.org>
From: Oliver Gould <ogould@olix0r.net>
List: tech-toolchain
Date: 08/16/2007 12:16:46
Hello-

I am able to build much of the ZFS userland at this point.  I have had
some problems when using, for instance, the following Makefile, though:

  # $FreeBSD: src/cddl/lib/libnvpair/Makefile,v 1.2 2007/04/16 21:20:25 ru Exp $
  
  .PATH: ${.CURDIR}/../../../contrib/opensolaris/lib/libnvpair
  .PATH: ${.CURDIR}/../../../sys/contrib/opensolaris/common/nvpair
  
  LIB=	nvpair
  
  SRCS=	libnvpair.c \
  	nvpair_alloc_system.c \
  	nvpair_alloc_fixed.c \
  	nvpair.c
  
  CFLAGS+= -I${.CURDIR}/../../../sys/compat/opensolaris
  CFLAGS+= -I${.CURDIR}/../../../sys/contrib/opensolaris/uts/common
  
  LINTFLAGS+= -I${.CURDIR}/../../../sys/compat/opensolaris
  LINTFLAGS+= -I${.CURDIR}/../../../sys/contrib/opensolaris/uts/common
  
  .include <bsd.lib.mk>

This yields the following:
  ...
  libnvpair.a
  libnvpair_p.a
  libnvpair_pic.a
  libnvpair.so.1 -> libnvpair.so.1
  libnvpair.so -> libnvpair.so.1
  ...

Clearly the shared lib files are useless.  I didn't notice any obvious
difference with other lib Makefiles.  What am I missing?

  - Oliver