Date: Wed, 06 Jul 2005 12:09:32 -0400
To: [EMAIL PROTECTED]
From: Kevin Neelands <[EMAIL PROTECTED]>
Subject: GCC on linux, question on -m32 switch


I am using GCC 3.2.3 on a Linux Sparc system. The program I am working on needs to be compiled in 32 bit mode for historical reasons. I have added the -m32 switch to all the makefiles in the project. The project creates a couple of its own libraries. The makefiles for these libraries contain the standard lines

libsupport.a: $(OBJ)
        ar rc libsupport.a $(OBJ)
        ranlib libsupport.a

The .c files compiled to create the OBJ files are compiled with the -m32 switch. The problem arises at link time. I get the message
skipping incompatible support/libsupport.a when searching for -lsupport

Looking through the online documentation for the -m32 switch I don't see any references to additional needed switches. Do I need to do something else???

Reply via email to