summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdebian/rules6
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index b68f714..317ba0e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,7 @@
# version number of the defaults package
VDEF := $(strip $(shell dpkg-parsechangelog | awk -F: '/^Version:/ {print $$NF}'))
SOURCE := $(strip $(shell dpkg-parsechangelog | awk -F: '/^Source:/ {print $$NF}'))
+DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
VMAJOR := $(shell echo $(VDEF) | awk -F. '{print $$1}')
VMINOR := $(shell echo $(VDEF) | awk -F. '{print $$2}' | sed -e 's/\([0-9]*\).*/\1/')
@@ -742,6 +743,11 @@ ifeq ($(with_native),yes)
dh_link -pcpp \
/usr/bin/cpp-$(PV_CPP) /usr/bin/cpp \
/usr/bin/cpp-$(PV_CPP) /usr/bin/$(DEB_HOST_GNU_TYPE)-cpp
+ ifeq (illumos,$(DEB_HOST_ARCH_OS))
+ # rpcgen uses /usr/lib/cpp by default:
+ dh_link -pcpp \
+ /usr/bin/cpp /usr/lib/cpp
+ endif
ifeq ($(with_gfdl_docs),yes)
for i in gfdl.7 gpl.7 fsf-funding.7; do \