summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-06-14 01:18:16 +0000
committergrant <grant@pkgsrc.org>2004-06-14 01:18:16 +0000
commitdd030e3fb5d3207f42c2cbc92b0b6ebefcccf2f5 (patch)
tree5fcb68619e62c717bdd76e8c68e36b04606392f6 /mk
parent239d12fe26daf2464e9eb325b01d079a952c4437 (diff)
downloadpkgsrc-dd030e3fb5d3207f42c2cbc92b0b6ebefcccf2f5.tar.gz
ensure that motif header files and libraries can be found at
compile/link time by adding the appropriate flags to CPPFLAGS and LDFLAGS (patch posted to tech-pkg@). fixes build of a number of motif-needy packages on Solaris using native motif from /usr/dt. XXX this needs to better adhere to the buildlink3 way, but not during the freeze.
Diffstat (limited to 'mk')
-rw-r--r--mk/motif.buildlink3.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/motif.buildlink3.mk b/mk/motif.buildlink3.mk
index e87e74dab82..b425c0895c1 100644
--- a/mk/motif.buildlink3.mk
+++ b/mk/motif.buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: motif.buildlink3.mk,v 1.2 2004/05/10 00:11:14 xtraeme Exp $
+# $NetBSD: motif.buildlink3.mk,v 1.3 2004/06/14 01:18:16 grant Exp $
#
# USE_MOTIF12
# use a Motif-1.2-compatible installation, otherwise, assume
@@ -140,6 +140,8 @@ MOTIFBASE= ${_MOTIFBASE}
USE_X11?= # defined
MAKE_ENV+= MOTIFLIB="${MOTIFLIB}"
MAKE_ENV+= MOTIFBASE="${_MOTIFBASE}"
+CPPFLAGS+= -I${_MOTIFBASE}/include
+LDFLAGS+= -L${_MOTIFBASE}/lib
LDFLAGS+= ${_COMPILER_LD_FLAG}${_OPSYS_RPATH_NAME}${_MOTIFBASE}/lib
MOTIFLIB?= ${_COMPILER_LD_FLAG}${_OPSYS_RPATH_NAME}${_MOTIFBASE}/lib \
-L${_MOTIFBASE}/lib -lXm -lXp