diff options
Diffstat (limited to 'debian/rules.d/binary-base.mk')
-rw-r--r-- | debian/rules.d/binary-base.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/debian/rules.d/binary-base.mk b/debian/rules.d/binary-base.mk index 8e4664e..8842834 100644 --- a/debian/rules.d/binary-base.mk +++ b/debian/rules.d/binary-base.mk @@ -18,19 +18,21 @@ $(binary_stamp)-base: $(install_dependencies) dh_installdirs -p$(p_base) \ $(gcc_lexec_dir) +ifneq ($(DEB_STAGE),rtlibs) ln -sf $(BASE_VERSION) \ $(d_base)/$(subst /$(BASE_VERSION),/$(GCC_VERSION),$(gcc_lib_dir)) for link in $(additional_links); do \ ln -sf $(BASE_VERSION) \ $(d_base)/$$(dirname $(gcc_lib_dir))/$$link; \ done -ifneq ($(gcc_lib_dir),$(gcc_lexec_dir)) + ifneq ($(gcc_lib_dir),$(gcc_lexec_dir)) ln -sf $(BASE_VERSION) \ $(d_base)/$(subst /$(BASE_VERSION),/$(GCC_VERSION),$(gcc_lexec_dir)) for link in $(additional_links); do \ ln -sf $(BASE_VERSION) \ $(d_base)/$$(dirname $(gcc_lexec_dir))/$$link; \ done + endif endif ifeq ($(with_base_only),yes) @@ -42,7 +44,11 @@ endif dh_installchangelogs -p$(p_base) dh_compress -p$(p_base) dh_fixperms -p$(p_base) +ifeq ($(DEB_STAGE)-$(DEB_CROSS),rtlibs-yes) + $(cross_gencontrol) dh_gencontrol -p$(p_base) -- -v$(DEB_VERSION) $(common_substvars) +else dh_gencontrol -p$(p_base) -- -v$(DEB_VERSION) $(common_substvars) +endif dh_installdeb -p$(p_base) dh_md5sums -p$(p_base) dh_builddeb -p$(p_base) |