[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: gcc - wrong package name (x86_64) when cross compiling make ftbfs



is the hunk in rules2 really needed? cross_bin_arch is the only macro
which can have a _, and it already gets substituted.

right, sorry for this mistake, here is the updated patch.

Arthur.
--- rules.defs.orig	2007-07-26 11:29:55.000000000 +0200
+++ rules.defs	2007-07-26 11:36:41.000000000 +0200
@@ -105,9 +105,9 @@
   # LS: Library Suffix. Used primarily at the end of cross compiler
   #     library package names (e.g. libgcc-powerpc-cross).
   DEB_TARGET_ALIAS ?= $(DEB_TARGET_GNU_TYPE)
-  TP = $(DEB_TARGET_GNU_TYPE)-
-  TS = -$(DEB_TARGET_ALIAS)
-  LS = -$(DEB_TARGET_ARCH)-cross
+  TP =  $(subst _,-,$(DEB_TARGET_GNU_TYPE))-
+  TS = -$(subst _,-,$(DEB_TARGET_ALIAS))
+  LS = -$(subst _,-,$(DEB_TARGET_ARCH))-cross
 endif
 
 ifeq ($(DEB_CROSS),yes)
@@ -152,8 +152,8 @@
 endif
 
 ifdef DEB_CROSS
-  cross_bin_arch := -$(TARGET_ALIAS)
-  cross_lib_arch := -$(DEB_TARGET_ARCH)-cross
+  cross_bin_arch := -$(subst _,-,$(TARGET_ALIAS))
+  cross_lib_arch := -$(subst _,-,$(DEB_TARGET_ARCH))-cross
 endif
 
 ifndef DEB_CROSS

Reply to: