Subject: LDFLAGS
To: None <current-users@netbsd.org>
From: Adam Ciarcinski <adam@albedo.art.pl>
List: current-users
Date: 09/29/2004 17:25:47
Hi,

I'm trying to pass some linker options to the system build (it doesn't 
matter what ;)).  The problem I've encountered is that some objects are 
linked using 'cc', while others with 'ld'.  If it's 'cc', LDFLAGS must be 
formed as, for example LDFLAGS=-Wl,--something.  It will not work for 
things linked using 'ld'.  Then I have to use LDFLAGS=--something.

Why there is such inconsistency in the source tree?  Could these variables 
be separated, like for example LDFLAGS and CCLDFLAGS (or LINKFLAGS)?
Or, maybe I missed something? ~:)

Kind regards,
Adam