summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorgrant <grant>2004-06-14 01:18:16 +0000
committergrant <grant>2004-06-14 01:18:16 +0000
commit683c2607e74bd916bd23e1b7a8f07b4031461921 (patch)
tree5fcb68619e62c717bdd76e8c68e36b04606392f6 /mk
parent47c8870b03dc76368fb34e1c230c4ba7ca62f9c6 (diff)
downloadpkgsrc-683c2607e74bd916bd23e1b7a8f07b4031461921.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