#216 The "extends" attribute in the linker doesn't work

closed-fixed
cpptasks (103)
5
2007-09-21
2007-09-14
No

If I define a base linker and then use the "extends" flag to derive a new linker, it actually will not inherit any of the attributes from the base class at all.

I use:
<linker id='BaseLinker' ><linkerarg value="-DBASEDEFINE"/></linker>
<linker id='SubLinker' extends='BaseLinker'><linkerarg value="-DSUBDEFINE"/></linker>

<cc ...>
<linker refid='SubLinker'/>
...
</cc>

When I actually link with "SubLinker" the "-DSUBDEFINE" gets printed on the command line, but the "-DBASEDEFINE" flag is missing:

[cc] gcc -Wl,-DSUBDEFINE -shared -o out out.o

Thanks!

--Mike Micucci
--Senior Software Developer - Roguewave Software Inc.

Discussion

  • David Haney

    David Haney - 2007-09-21

    Logged In: YES
    user_id=1140024
    Originator: NO

    Fixed in svn revision 145.

     
  • David Haney

    David Haney - 2007-09-21
    • assigned_to: carnold --> darius42
    • status: open --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks