diff options
author | jlam <jlam@pkgsrc.org> | 2004-12-22 21:39:25 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-12-22 21:39:25 +0000 |
commit | bf4e0b5a649805e1904cca9c08df084cbed479c2 (patch) | |
tree | df45f092632481b882055c5bb63445d244fe6bc9 /mk/tools.mk | |
parent | 37a8a65703cb117fe36417310740e727ef78edc8 (diff) | |
download | pkgsrc-bf4e0b5a649805e1904cca9c08df084cbed479c2.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/tools.mk')
-rw-r--r-- | mk/tools.mk | 9 |
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 |