diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules index 2cda25e..8b47f81 100755 --- a/debian/rules +++ b/debian/rules @@ -461,6 +461,9 @@ DEB_TARGET_MULTIARCHN32_mips64r6el = mipsisa64r6el-linux-gnuabin32 DEB_TARGET_MULTIARCH32_arm64 = aarch64_ilp32-linux-gnu +DEB_TARGET_MULTIARCH32_illumos-amd64 = i386-illumos +DEB_TARGET_MULTIARCH64_illumos-i386 = x86_64-illumos + SET_MULTIARCH_ENV = \ DEB_TARGET_MULTIARCH=$(call _multiarch,$1) \ $(if $(DEB_TARGET_MULTIARCH32_$1) ,DEB_TARGET_MULTIARCH32=$(DEB_TARGET_MULTIARCH32_$1)) \ @@ -1037,6 +1040,14 @@ stamps/install: checkroot stamps/build $(install_stamps) sed -i -e '/^\.TH /s/[0-9]*-[0-9]*-[0-9]*/$(BUILD_DAY)/' $$f; \ done +ifeq (illumos,$(DEB_HOST_ARCH_OS)) + ln -sf ld $(pwd)/$(d_bin)/$(PF)/bin/ld_sol2 + for prog in ld as nm ; do \ + ln -sf $$prog $(pwd)/$(d_bin)/$(PF)/bin/g$$prog ; \ + ln -sf $$prog.1.gz $(pwd)/$(d_bin)/$(PF)/share/man/man1/g$$prog.1.gz ; \ + done +endif + ifeq ($(with_multiarch),yes) : # now install binutils-multiarch stuff env MAKE="$(MAKE) VERSION=$(MULTI_VERSION)" \ |