Under IRIX 6.3 gcc 3.2.2, building python results in the
normal IRIX o32/n32 stupidity. However, attempting to
correct it by specifying LDFLAGS of -n32 is ignored.
Inspecting the Makefile produced by configure shows
that the environment variable LDFLAGS is properly
imported and is set as the environment variable is set (in
this case; "LDFLAGS = -n32"). **HOWEVER**, it is
NEVER used on any "ld" command line.
I was able to fix it by changing the lines:
LDSHARED= ld -shared -all
BLDSHARED= ld -shared -all
to:
LDSHARED= ld -shared -all $(LDFLAGS)
BLDSHARED= ld -shared -all $(LDFLAGS)
While I do not profess that this is the best way to fix it,
I do note that the LDFLAGS Makefile variable seems to
be ignored unless this is done. Making this change got
rid of the FATAL ld errors complaining about expecting
o32 binaries but getting n32 versions.
|