Module Name: src
Committed By: christos
Date: Wed Feb 17 17:36:32 UTC 2010
Modified Files:
src/external/cddl/osnet/lib/libnvpair: Makefile
Log Message:
Fix build issue with our make system building libnvpair.so from libnvpair.c
and libnvpair.so from *.so by renaming libnvpair.c to lib_nvpair.c
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/cddl/osnet/lib/libnvpair/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/cddl/osnet/lib/libnvpair/Makefile
diff -u src/external/cddl/osnet/lib/libnvpair/Makefile:1.1 src/external/cddl/osnet/lib/libnvpair/Makefile:1.2
--- src/external/cddl/osnet/lib/libnvpair/Makefile:1.1 Fri Aug 7 16:57:56 2009
+++ src/external/cddl/osnet/lib/libnvpair/Makefile Wed Feb 17 12:36:32 2010
@@ -1,11 +1,17 @@
-# $NetBSD: Makefile,v 1.1 2009/08/07 20:57:56 haad Exp $
+# $NetBSD: Makefile,v 1.2 2010/02/17 17:36:32 christos Exp $
.PATH: ${.CURDIR}/../../dist/lib/libnvpair
.PATH: ${.CURDIR}/../../dist/common/nvpair
LIB= nvpair
-SRCS= libnvpair.c nvpair_alloc_system.c nvpair_alloc_fixed.c nvpair.c
+SRCS= lib_nvpair.c nvpair_alloc_system.c nvpair_alloc_fixed.c nvpair.c
+
+lib_nvpair.c: libnvpair.c
+ @rm -f ${.TARGET}
+ @ln -s ${.ALLSRC} ${.TARGET}
+
+CLEANFILES+=lib_nvpair.c
.include "../../Makefile.zfs"
.include <bsd.lib.mk>