Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Is the ordering of LINKFLAGS and LIB/LIBPATH intentional?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Marius  
View profile  
 More options Oct 22 2012, 3:07 pm
From: Marius <mmil...@ucdavis.edu>
Date: Mon, 22 Oct 2012 12:07:41 -0700 (PDT)
Local: Mon, Oct 22 2012 3:07 pm
Subject: Is the ordering of LINKFLAGS and LIB/LIBPATH intentional?

All the waf compilers put LINKFLAGS at the very beginning of the command
before any source or object files, whereas they put LIB/LIBPATH at the very
end. It seems like the latter is the correct place to put them, as some
compilers fail when the link flags are at the beginning (e.g. see
http://www.network-theory.co.uk/docs/gccintro/gccintro_18.html). I'm not
that familiar with the details of linking so I wanted to ask here if
there's a reason for that before filing a bug report.

Here's the relevant line for e.g. the C compiler:

./Tools/c.py:17: run_str='${LINK_CC} ${LINKFLAGS} ${CCLNK_SRC_F}${SRC}
${CCLNK_TGT_F}${TGT[0].abspath()} ${RPATH_ST:RPATH}
${FRAMEWORKPATH_ST:FRAMEWORKPATH} ${FRAMEWORK_ST:FRAMEWORK} ${ARCH_ST:ARCH}
${STLIB_MARKER} ${STLIBPATH_ST:STLIBPATH} ${STLIB_ST:STLIB} ${SHLIB_MARKER}
${LIBPATH_ST:LIBPATH} ${LIB_ST:LIB}'


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Nagy  
View profile  
 More options Oct 22 2012, 3:19 pm
From: Thomas Nagy <tnagy1...@gmail.com>
Date: Mon, 22 Oct 2012 21:18:55 +0200
Local: Mon, Oct 22 2012 3:18 pm
Subject: Re: [waf-users 4667] Is the ordering of LINKFLAGS and LIB/LIBPATH intentional?

On Mon, Oct 22, 2012 at 9:07 PM, Marius wrote:
> All the waf compilers put LINKFLAGS at the very beginning of the command
> before any source or object files, whereas they put LIB/LIBPATH at the very
> end. It seems like the latter is the correct place to put them, as some
> compilers fail when the link flags are at the beginning (e.g. see
> http://www.network-theory.co.uk/docs/gccintro/gccintro_18.html). I'm not
> that familiar with the details of linking so I wanted to ask here if there's
> a reason for that before filing a bug report.

This is required to be able to override other link flags easily.

There is no linkflags order that can satisfy everybody, but you may
override these settings in your scripts by subclassing the classes
cprogram/fcprogram/cxxprogram/etc.

Thomas


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »