[Bug build/19302] Cannot cross-build a fully functional native djgpp gdb
palves at redhat dot com
sourceware-bugzilla@sourceware.org
Wed Dec 2 10:12:00 GMT 2015
https://sourceware.org/bugzilla/show_bug.cgi?id=19302
--- Comment #4 from Pedro Alves <palves at redhat dot com> ---
> It doesn't.
Yeah, I was assuming you'd configure/build gcc with --{host,target}=djgpp.
Then it would work.
> What is "libsubdir" supposed to be anyway?
As I said, that file is maintained on the gcc repo, by the gcc folks. So check
the gcc repo. Grepping for "^libsubdir ="' on the gcc repo's shows hits like:
fixincludes/Makefile.in:libsubdir =
$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)
gcc/Makefile.in:libsubdir =
$(libdir)/gcc/$(real_target_noncanonical)/$(version)$(accel_dir_suffix)
libgcc/Makefile.in:libsubdir =
$(libdir)/gcc/$(real_host_noncanonical)/$(version)@accel_dir_suffix@
libjava/Makefile.am:libsubdir =
$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)
libjava/Makefile.in:libsubdir =
$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)
libobjc/Makefile.in:libsubdir =
$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)
...
target_noncanonical here will be the same as target_alias, I think.
Seems to me that the real fix is to change these places to take djgpp's special
requirement in consideration, rather than hacking target_alias. To avoid ifs
all of the place, maybe pass around a new variable like e.g.,
"$target_libsubdir" that defaults to $target_noncanonical everywhere except
djgpp, which would override it to "djgpp".
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list