File: cross.patch

package info (click to toggle)
gdb 17.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 239,232 kB
  • sloc: ansic: 2,137,474; asm: 375,889; exp: 216,335; cpp: 73,755; makefile: 70,606; sh: 26,507; python: 14,162; yacc: 11,371; ada: 7,501; xml: 6,296; perl: 5,077; tcl: 3,566; pascal: 3,389; f90: 2,764; lisp: 1,984; cs: 879; lex: 738; sed: 228; awk: 181; objc: 137; fortran: 57
file content (34 lines) | stat: -rw-r--r-- 1,550 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Author: Helmut Grohne <helmut@subdivi.de>
Description: gdb fails to cross build from source for three distinct reasons.
 [...]
 3. In bfd/doc, chew.c uses host compiler flags with the build compiler.
    This fails badly when compiling for amd64 or arm64.
Forwarded: not-yet
Bug-Debian: https://bugs.debian.org/1124547

--- gdb-17.1.orig/bfd/doc/local.mk
+++ gdb-17.1/bfd/doc/local.mk
@@ -79,8 +79,8 @@
 
 $(MKDOC): %D%/chew.stamp ; @true
 %D%/chew.stamp: $(srcdir)/%D%/chew.c %D%/$(am__dirstamp)
-	$(AM_V_CCLD)$(CC_FOR_BUILD) -o %D%/chw$$$$$(EXEEXT_FOR_BUILD) $(CFLAGS) \
-	  $(WARN_CFLAGS) $(CPPFLAGS) $(LDFLAGS) \
+	$(AM_V_CCLD)$(CC_FOR_BUILD) -o %D%/chw$$$$$(EXEEXT_FOR_BUILD) $(CFLAGS_FOR_BUILD) \
+	  $(WARN_CFLAGS) $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) \
 	  -I. -I$(srcdir) -I%D% -I$(srcdir)/../include -I$(srcdir)/../intl -I../intl \
 	  $(srcdir)/%D%/chew.c && \
 	$(SHELL) $(srcdir)/../move-if-change \
--- gdb-17.1.orig/bfd/Makefile.in
+++ gdb-17.1/bfd/Makefile.in
@@ -2486,8 +2486,8 @@ coff-tic54x.lo: coff-tic54x.c
 
 $(MKDOC): doc/chew.stamp ; @true
 doc/chew.stamp: $(srcdir)/doc/chew.c doc/$(am__dirstamp)
-	$(AM_V_CCLD)$(CC_FOR_BUILD) -o doc/chw$$$$$(EXEEXT_FOR_BUILD) $(CFLAGS) \
-	  $(WARN_CFLAGS) $(CPPFLAGS) $(LDFLAGS) \
+	$(AM_V_CCLD)$(CC_FOR_BUILD) -o doc/chw$$$$$(EXEEXT_FOR_BUILD) $(CFLAGS_FOR_BUILD) \
+	  $(WARN_CFLAGS) $(CPPFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) \
 	  -I. -I$(srcdir) -Idoc -I$(srcdir)/../include -I$(srcdir)/../intl -I../intl \
 	  $(srcdir)/doc/chew.c && \
 	$(SHELL) $(srcdir)/../move-if-change \