Problem in compiling libffi as multilib

Bo Thorsen bo@sonofthor.dk
Fri Jul 19 10:55:00 GMT 2002


I'm now trying to get libffi compiling with multilibs, without any success so 
far.

The problem is that both the 64 bit compilation (native x86-64) and the 32 bit 
(gcc -m32) will use the same config.status for building include/ffi.h. This 
means that I get the x86-64 defines in ffi.h.

The place responsible for this in include/Makefile.in is this:

ffi.h: $(top_builddir)/config.status ffi.h.in
	cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) 
./config.status

Unfortunately I have no clue as to how to get this to do the right thing :-(

The same problem is there for fficonfig.h in toplevel. This also gets the 
x86-64 settings to use with the x86 compilation. This is a problem because 
x86 implements all APIs and x86-64 doesn't, which causes a lot of compiler 
errors.

Comments or suggestions for a fix for this?

Bo.

-- 

     Bo Thorsen                 |   Praestevejen 4
     Free software developer    |   5290 Marslev
     SuSE Labs                  |   Denmark



More information about the Gcc mailing list