Current-Users archive

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

Re: -m32: ld: skipping incompatible /lib/libgcc_s.so when searching for -lgcc_s



On Tue, Sep 15, 2026 at 10:07:06PM +0100, Valeriy E. Ushakov wrote:
> Old code that is not 64-bit clean?  I mean, the language it compiles
> is K&R...

uwe's right. For example, games/velena has this in its Makefile:

# Velena isn't 64bit-safe, which results in a "fatal error" for some
# board positions.
#
# Try for example "c170", which works with -m32 and fails without.
#
.for P in ${LP64PLATFORMS}
.  if ${MACHINE_PLATFORM:M${P}}
CFLAGS+=                -m32
LDFLAGS+=               -m32
.  endif
.endfor

 Thomas



Home | Main Index | Thread Index | Old Index