diff options
Diffstat (limited to 'debian/rules.d/binary-gcc.mk')
-rw-r--r-- | debian/rules.d/binary-gcc.mk | 41 |
1 files changed, 38 insertions, 3 deletions
diff --git a/debian/rules.d/binary-gcc.mk b/debian/rules.d/binary-gcc.mk index 14aaf6a..a8fbbc0 100644 --- a/debian/rules.d/binary-gcc.mk +++ b/debian/rules.d/binary-gcc.mk @@ -5,7 +5,7 @@ ifeq ($(with_plugins),yes) arch_binaries := $(arch_binaries) gcc-plugindev endif -arch_binaries := $(arch_binaries) gcc +arch_binaries := $(arch_binaries) libcc1 gcc ifneq ($(DEB_CROSS),yes) ifneq ($(GFDL_INVARIANT_FREE),yes) @@ -29,7 +29,7 @@ dirs_gcc = \ # XXX: what about triarch mapping? files_gcc = \ - $(PF)/bin/$(cmd_prefix){gcc,gcov}$(pkg_ver) \ + $(PF)/bin/$(cmd_prefix){gcc,gcov,gcov-tool}$(pkg_ver) \ $(PF)/bin/$(cmd_prefix)gcc-{ar,ranlib,nm}$(pkg_ver) \ $(PF)/share/man/man1/$(cmd_prefix)gcc-{ar,nm,ranlib}$(pkg_ver).1 \ $(gcc_lexec_dir)/{collect2,lto1,lto-wrapper} \ @@ -65,6 +65,9 @@ d_gcc_m = debian/$(p_gcc_m) p_pld = gcc$(pkg_ver)-plugin-dev$(cross_bin_arch) d_pld = debian/$(p_pld) +p_cc1 = libcc1-$(CC1_SONAME) +d_cc1 = debian/$(p_cc1) + # ---------------------------------------------------------------------- $(binary_stamp)-gcc: $(install_dependencies) dh_testdir @@ -113,8 +116,12 @@ endif DH_COMPAT=2 dh_movefiles -p$(p_gcc) $(files_gcc) + rm -f $(d)/$(usr_lib)/libcc1.so + dh_link -p$(p_gcc) \ + /$(usr_lib)/libcc1.so.$(CC1_SO) /$(gcc_lib_dir)/libcc1.so + ifneq ($(DEB_CROSS),yes) - for i in gcc gcov gcc-ar gcc-nm gcc-ranlib; do \ + for i in gcc gcov gcov-tool gcc-ar gcc-nm gcc-ranlib; do \ ln -sf $$i$(pkg_ver) \ $(d_gcc)/$(PF)/bin/$(DEB_TARGET_GNU_TYPE)-$$i$(pkg_ver); \ ln -sf $$i$(pkg_ver) \ @@ -197,6 +204,34 @@ $(binary_stamp)-gcc-multi: $(install_dependencies) trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp) # ---------------------------------------------------------------------- +$(binary_stamp)-libcc1: $(install_dependencies) + dh_testdir + dh_testroot + mv $(install_stamp) $(install_stamp)-tmp + + rm -rf $(d_cc1) + dh_installdirs -p$(p_cc1) \ + $(docdir) \ + $(usr_lib) + DH_COMPAT=2 dh_movefiles -p$(p_cc1) \ + $(usr_lib)/libcc1.so.* + + debian/dh_doclink -p$(p_cc1) $(p_xbase) + debian/dh_rmemptydirs -p$(p_cc1) + + dh_strip -p$(p_cc1) + dh_compress -p$(p_cc1) + dh_makeshlibs -p$(p_cc1) + dh_shlibdeps -p$(p_cc1) + dh_fixperms -p$(p_cc1) + dh_installdeb -p$(p_cc1) + dh_gencontrol -p$(p_cc1) -- -v$(DEB_VERSION) $(common_substvars) + dh_md5sums -p$(p_cc1) + dh_builddeb -p$(p_cc1) + + trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp) + +# ---------------------------------------------------------------------- $(binary_stamp)-gcc-plugindev: $(install_dependencies) dh_testdir dh_testroot |