summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorhans <hans>2012-01-11 13:28:45 +0000
committerhans <hans>2012-01-11 13:28:45 +0000
commitac092eceffec1cada9668ac5a81fab680422df5a (patch)
tree41e1c05bb0aeca7a161fb659caedfe76bc433e29 /devel
parent330d04ef5c28e4b52e5ebbc5d7ddab994875e51d (diff)
downloadpkgsrc-ac092eceffec1cada9668ac5a81fab680422df5a.tar.gz
Fix libdladm link error on SunOS.
Diffstat (limited to 'devel')
-rw-r--r--devel/libuuid/builtin.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/devel/libuuid/builtin.mk b/devel/libuuid/builtin.mk
index 8092e1bcf29..80f27e087c9 100644
--- a/devel/libuuid/builtin.mk
+++ b/devel/libuuid/builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.3 2011/11/30 08:04:20 sbd Exp $
+# $NetBSD: builtin.mk,v 1.4 2012/01/11 13:28:45 hans Exp $
BUILTIN_PKG:= libuuid
@@ -73,6 +73,11 @@ CHECK_BUILTIN.libuuid?= no
!empty(USE_TOOLS:C/:.*//:Mpkg-config)
BUILDLINK_TARGETS+= libuuid-fake-pc
+. if ${OPSYS} == "SunOS"
+BUILDLINK_PASSTHRU_DIRS+= /lib
+LIBUUID_LDADD= -L/lib
+. endif
+
libuuid-fake-pc:
${RUN} \
${MKDIR} ${BUILDLINK_DIR}/lib/pkgconfig; \
@@ -84,7 +89,7 @@ libuuid-fake-pc:
{ ${ECHO} "Name: uuid"; \
${ECHO} "Description: Universally unique id library"; \
${ECHO} "Version: ${BUILTIN_VERSION.libuuid}"; \
- ${ECHO} "Libs: -L/usr/lib -luuid" \
+ ${ECHO} "Libs: -L/usr/lib -luuid ${LIBUUID_LDADD}" \
${ECHO} "Cflags: -I/usr/include"; \
} >$${dst} ;\
fi