[exim-dev] Fix exim-4.69 cross-compilation

Góra strony
Delete this message
Reply to this message
Autor: Beber
Data:  
Dla: exim-dev
Temat: [exim-dev] Fix exim-4.69 cross-compilation
Hi,

exim don't cross-compile correctly as it start because it build "buildconfig" using CC instead of HOSTCC which result on :

make[1]: Entering directory
`/usr/i586-geode-linux-uclibc/tmp/portage/mail-mta/exim-4.69/work/exim-4.69/build-exim-gentoo'
/bin/sh ../scripts/Configure-os.h
/bin/sh ../scripts/Configure-os.c
i586-geode-linux-uclibc-gcc buildconfig.c
/bin/sh ../scripts/Configure-config.h "make"
make[2]: Entering directory
`/usr/i586-geode-linux-uclibc/tmp/portage/mail-mta/exim-4.69/work/exim-4.69/build-exim-gentoo'
make[2]: `buildconfig' is up to date.
make[2]: Leaving directory
`/usr/i586-geode-linux-uclibc/tmp/portage/mail-mta/exim-4.69/work/exim-4.69/build-exim-gentoo'
/bin/sh: line 77: ./buildconfig: No such file or directory
make[1]: *** [config.h] Error 1
make[1]: Leaving directory
`/usr/i586-geode-linux-uclibc/tmp/portage/mail-mta/exim-4.69/work/exim-4.69/build-exim-gentoo'
make: *** [go] Error 2

running buildconfig failed as the host is not uclibc compatible.

exim-BJA-buildconfig-HOSTCC.diff fix that issue really simply.

Thanks,
Bertrand Jacquin

--
Beber
--- OS/Makefile-Base.ori    2009-04-17 23:31:07.000000000 +0200
+++ OS/Makefile-Base    2009-04-17 23:31:41.000000000 +0200
@@ -114,8 +114,8 @@


 # Targets for special-purpose configuration header builders
 buildconfig: buildconfig.c
-    @echo "$(CC) buildconfig.c"
-    $(FE)$(CC) $(CFLAGS) $(INCLUDE) -o buildconfig buildconfig.c $(LIBS)
+    @echo "$(HOSTCC) buildconfig.c"
+    $(FE)$(HOSTCC) $(HOSTCFLAGS) $(INCLUDE) -o buildconfig buildconfig.c $(LIBS)



# Target for the exicyclog utility script