[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

More cross-compiler problems



I ran into another interesting cross-compile bug:

Using dpkg-buildpackage -ahurd-i386, it configures gcc-3.3 like so:

         --build=i386-linux
         --host=i386-gnu
         --target=i386-linux

It looks like:

DEB_TARGET_ARCH         := $(shell dpkg-architecture -f \
                        -a$(GCC_TARGET) -qDEB_HOST_ARCH 2>/dev/null)

Is flawed because it assumes that it GCC_TARGET isn't set that it must
be targetted to the current machine.  Instead it should check to see if
DEB_BUILD_GNU_TYPE and DEB_HOST_GNU_TYPE are the same, and only use
GCC_TARGET if they are.

You could probably get more complicated if this is intended to build
Canadian cross's as well - but that's just getting the rules right for
doing the right thing when GCC_TARGET isn't defined.

Tks,
Jeff Bailey

-- 
You said homosexuals form a small percentage of the population.  So
do Jews.  Is that a reason to deny someone equality?
 - Richard Marceau



Reply to: