diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-06-09 12:48:53 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-06-09 12:48:53 +0300 |
commit | 1ff087961d689d6e7c92fbc377c9afcfc2c062ba (patch) | |
tree | 7b6f0d106e5acc385e08cfb7bfea4657222570a0 | |
parent | 781434cd4f3b1be60b117ae61babaf60f4a9e563 (diff) | |
download | gcc-defaults-1ff087961d689d6e7c92fbc377c9afcfc2c062ba.tar.gz |
Create link /usr/lib/cpp -> /usr/bin/cpp
-rwxr-xr-x | debian/rules | 6 |
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 \ |