summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam>2004-12-22 21:39:25 +0000
committerjlam <jlam>2004-12-22 21:39:25 +0000
commit01c3cc7fa52b88f1037e076b07e70b2cbd3056fc (patch)
treedf45f092632481b882055c5bb63445d244fe6bc9 /mk
parente0631cb51a7fb94d1e76a731f06dd55c997ee68e (diff)
downloadpkgsrc-01c3cc7fa52b88f1037e076b07e70b2cbd3056fc.tar.gz
On NetBSD, rpcgen must *always* be invoked with "-b":
-b Compile stubs in "backwards compatible" mode, disabling support for transport-independent RPC. The -b should always be specified when generating files for NetBSD, since there is no transport-independent RPC support in NetBSD. Therefore, force "-b" to be the first argument whenever rpcgen is invoked via the wrapper.
Diffstat (limited to 'mk')
-rw-r--r--mk/tools.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/mk/tools.mk b/mk/tools.mk
index f17c69d3c5a..b9076cfd49c 100644
--- a/mk/tools.mk
+++ b/mk/tools.mk
@@ -1,4 +1,4 @@
-# $NetBSD: tools.mk,v 1.47 2004/12/18 19:24:26 jlam Exp $
+# $NetBSD: tools.mk,v 1.48 2004/12/22 21:39:25 jlam Exp $
#
# This Makefile creates a ${TOOLS_DIR} directory and populates the bin
# subdir with tools that hide the ones outside of ${TOOLS_DIR}.
@@ -396,6 +396,9 @@ ${TOOLS_DIR}/bin/make:
# stat((2)able path to a C preprocessor, then rely on the PATH to
# find and invoke the real rpcgen.
#
+RPCGEN?= rpcgen
+RPCGEN_ARGS.NetBSD= -b
+RPCGEN_ARGS?= ${RPCGEN_ARGS.${OPSYS}}
override-tools: ${TOOLS_DIR}/bin/rpcgen
.if !target(${TOOLS_DIR}/bin/rpcgen)
${TOOLS_DIR}/bin/rpcgen:
@@ -406,8 +409,8 @@ ${TOOLS_DIR}/bin/rpcgen:
${ECHO} 'CPP="${WRAPPER_BINDIR}/cpp"; export CPP'; \
PATH=`${ECHO} "${PATH}" | ${SED} -e "s,.*${.TARGET:H}:,,"`; \
${ECHO} "PATH=\"$$PATH\"; export PATH"; \
- ${ECHO} '${ECHO} "<.> rpcgen $$*" >> $$wrapperlog'; \
- ${ECHO} 'rpcgen "$$@"'; \
+ ${ECHO} '${ECHO} "<.> ${RPCGEN} ${RPCGEN_ARGS} $$*" >> $$wrapperlog'; \
+ ${ECHO} '${RPCGEN} ${RPCGEN_ARGS} "$$@"'; \
) > ${.TARGET}
${_PKG_SILENT}${_PKG_DEBUG}${CHMOD} +x ${.TARGET}
.endif