[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Cross compilation fix for Makefile.in
From: |
NIIBE Yutaka |
Subject: |
Cross compilation fix for Makefile.in |
Date: |
Tue, 15 Jan 2002 14:18:26 +0900 (JST) |
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu'
-DCONF_VENDOR='pc' -DSHELL -DHAVE_CONFIG_H -I.
-I/home/swt/doko/export/packages/bash/bash-2.05a
-I/home/swt/doko/export/packages/bash/bash-2.05a/include
-I/home/swt/doko/export/packages/bash/bash-2.05a/lib -g -O2
uname output: Linux fsij 2.4.17 #11 SMP Thu Jan 10 15:43:14 JST 2002 i686
unknown
Machine Type: i386-pc-linux-gnu
Bash Version: 2.05a
Patch Level: 0
Release Status: release
Description:
When we cross compile bash 2.05a, it fails.
Repeat-By:
./configure --host=CROSS-TARGET
make
(In my case, it's sh4-linux)
Fix:
Here's a patch. We need to distingush version.o (for target
system) and build-version.o (for build system).
The executable bashversion should use build-version.o.
--- bash-2.05a.orig/Makefile.in
+++ bash-2.05a/Makefile.in
@@ -486,8 +486,10 @@
$(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 build-version.o
$(SUPPORT_SRC)bashversion.c
+ $(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) $(CPPFLAGS) -o $@
$(SUPPORT_SRC)bashversion.c build-version.o
+build-version.o: version.h conftypes.h patchlevel.h version.c
+ $(CC_FOR_BUILD) $(CCFLAGS) -c $(srcdir)/version.c -o $@
# old rules
GRAM_H = parser-built
--
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Cross compilation fix for Makefile.in,
NIIBE Yutaka <=