[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Cross-compiling bash 2.05a fails.
From: |
Harald Nordgård-Hansen |
Subject: |
Cross-compiling bash 2.05a fails. |
Date: |
17 Jan 2002 19:54:36 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 |
Configuration Information:
Machine: i386 and arm
OS: linux-gnu
Compiler: gcc
Bash Version: 2.05a
Patch Level: 0
Release Status: release
Description:
When crosscompiling bash (in this case compiling on x86-linux
with arm-linux as target), the file version.o is used both by
bash itself as well as the bashversion utility used as part of
the build process. The way Makefile.in has been set up,
version.c is cross-compiled to version.o, and this file is
then attempted linked together with build-host object code to
create bashversion.
Repeat-By:
./configure --build=i386-linux --host=arm-linux; make
Cross-compiler (arm-linux-gcc) needs to be available... :)
Fix:
The easy way seems to just make sure that bashversion compiles
version.c from source, instead of using the version.o created
to be part of bash. While inelegant, it works. To achieve
this, Makefile.in needs a patch like this one:
----------------------------------
--- bash-2.05a/Makefile.in.orig Tue Jan 15 14:54:57 2002
+++ bash-2.05a/Makefile.in Tue Jan 15 14:55:15 2002
@@ -486,8 +486,8 @@
$(SHELL) $(SUPPORT_SRC)mkversion.sh -b -S ${topdir} -s $(RELSTATUS) -d
$(Version) -o newversion.h \
&& mv newversion.h version.h
-bashversion$(EXEEXT): patchlevel.h conftypes.h version.h version.o
$(SUPPORT_SRC)bashversion.c
- $(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) $(CPPFLAGS) -o $@
$(SUPPORT_SRC)bashversion.c version.o
+bashversion$(EXEEXT): patchlevel.h conftypes.h version.h version.c
$(SUPPORT_SRC)bashversion.c
+ $(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) $(CPPFLAGS) -o $@
$(SUPPORT_SRC)bashversion.c version.c
# old rules
GRAM_H = parser-built
----------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Cross-compiling bash 2.05a fails.,
Harald Nordgård-Hansen <=