Source: dash
Severity: important
Justification: breaks architecture cross bootstrap
Tags: patch upstream
User: [email protected]
Usertags: ftcbfs
User: [email protected]
Usertags: rebootstrap
X-Debbugs-Cc: [email protected]
Hi,
dpkg started adding -mbranch-protection=standard to LDFLAGS. Since like
forever, dash passes LDFLAGS to CC_FOR_BUILD and that doesn't go well.
I'm attaching a patch to stop it from doing so as we already do for
CFLAGS and others.
Helmut
Index: dash-0.5.12/configure.ac
===================================================================
--- dash-0.5.12.orig/configure.ac
+++ dash-0.5.12/configure.ac
@@ -17,15 +17,18 @@ if test "$cross_compiling" = yes; then
CC_FOR_BUILD=${CC_FOR_BUILD-cc}
CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-}
CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-}
+ LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-}
else
CC_FOR_BUILD=${CC}
CFLAGS_FOR_BUILD=${CFLAGS}
CPPFLAGS_FOR_BUILD=${CPPFLAGS}
+ LDFLAGS_FOR_BUILD=${LDFLAGS}
fi
AC_MSG_RESULT(${CC_FOR_BUILD})
AC_SUBST(CC_FOR_BUILD)
AC_SUBST(CFLAGS_FOR_BUILD)
AC_SUBST(CPPFLAGS_FOR_BUILD)
+AC_SUBST(LDFLAGS_FOR_BUILD)
AC_MSG_CHECKING([for __attribute__((__alias__()))])
dash_cv_have_attribute_alias=no
Index: dash-0.5.12/src/Makefile.am
===================================================================
--- dash-0.5.12.orig/src/Makefile.am
+++ dash-0.5.12/src/Makefile.am
@@ -12,7 +12,7 @@ AM_CPPFLAGS_FOR_BUILD = $(COMMON_CPPFLAG
COMPILE_FOR_BUILD = \
$(CC_FOR_BUILD) $(DEFAULT_INCLUDES) $(AM_CPPFLAGS_FOR_BUILD) \
$(CPPFLAGS_FOR_BUILD) \
- $(LDFLAGS) \
+ $(LDFLAGS_FOR_BUILD) \
$(AM_CFLAGS_FOR_BUILD) $(CFLAGS_FOR_BUILD)
bin_PROGRAMS = dash