[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Makefile.in and cross-compile
From: |
Graeme Peterson |
Subject: |
Makefile.in and cross-compile |
Date: |
Thu, 11 Apr 2002 13:41:46 -0400 (EDT) |
Hi.
bash-2.05a has some support for cross compiling, but I noticed that
the bashversion binary that gets run at the start of the make depends
on an object that is built with CC, instead of CC_FOR_BUILD.
Here is how I fixed it for me.
Thanks.
Graeme Peterson
QNX
*** bash-2.05a/Makefile.in Mon Nov 12 11:42:45 2001
--- bash-2.05a_qnx/Makefile.in Thu Apr 11 11:29:22 2002
*************** version.h: $(SOURCES) config.h Makefile
*** 486,493 ****
$(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
# old rules
GRAM_H = parser-built
--- 486,496 ----
$(SHELL) $(SUPPORT_SRC)mkversion.sh -b -S ${topdir} -s $(RELSTATUS) -d
$(Version) -o newversion.h \
&& mv newversion.h version.h
! version_build.o: version.c
! $(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) $(CPPFLAGS) -c -o$@
$(srcdir)/version.c
!
! bashversion$(EXEEXT): patchlevel.h conftypes.h version.h version_build.o
$(SUPPORT_SRC)bashversion.c
! $(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) $(CPPFLAGS) -o $@
$(SUPPORT_SRC)bashversion.c version_build.o
# old rules
GRAM_H = parser-built
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Makefile.in and cross-compile,
Graeme Peterson <=