Subject: soc zfs: and self-referencing symlinks
To: None <>
From: Oliver Gould <>
List: tech-toolchain
Date: 08/16/2007 12:16:46

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 \
  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 <>

This yields the following:
  libnvpair_pic.a -> ->

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

  - Oliver