I'm trying to get gcc to compile a library into 32-bit code (specifically,
libv4lconvert from the latest gspca) on a 64-bit Linux. I run the command:
make PREFIX=/usr CFLAGS=-m32 LDFLAGS=-melf_i386
(apparently ld has disallowed the -m32 option)
and after a few successful compiles it tells me
ld: Relocatable linking with relocations from format elf64-x86-64
(/usr/src/libv4l-2009-12-20/v4l/.tmp_tuner-xc2028.o) to format elf32-i386
(/usr/src/libv4l-2009-12-20/v4l/tuner-xc2028.o) is not supported
and then backs its way out of the directory tree. What's the magic word to
make it produce 32-bit code? I'm about to make a 32-bit VM, install Linux
in it, and run gcc in that 32 bit environment and make this work. That
still leaves the slight matter of possibly-differing library versions,
however.
-- -eben QebWenE01R@vTerYizUonI.nOetP royalty.mine.nu:81 Scientist A: A matterbaby is a very unstable particle. Scientist B: What's a matterbaby? Scientist A: I'm doing fine honey, how you doing? -- mrshowrules on Fark ----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 14:19:50 EDT