Bugs item #814259, was opened at 2003-09-28 20:51
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=814259&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Python 2.3
Status: Closed
Resolution: Fixed
Priority: 5
Submitted By: Randy Davis (randydavis1)
Assigned to: Neal Norwitz (nnorwitz)
Summary: LDFLAGS ignored in Makefile

Initial Comment:
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.

----------------------------------------------------------------------

>Comment By: Neal Norwitz (nnorwitz)
Date: 2005-10-02 18:06

Message:
Logged In: YES 
user_id=33168

Looking in Makefile.pre.in I see that LDFLAGS is used to
link with.  If you are still having problems, please re-open.

----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2005-10-01 23:30

Message:
Logged In: YES 
user_id=33168

Looking in Makefile.pre.in I see that LDFLAGS is used to
link with.  If you are still having problems, please re-open.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=814259&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to