Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#24 Filenames for gcc static library does start with lib

closed-fixed
Curt Arnold
None
5
2003-02-17
2003-02-17
Curt Arnold
No

Private email to carnold from sorin gherman (10/5/2002)
reposted to mailing list.

Hi,
> I've downloaded (via CVS) and compiled the latest
version of CPPTASKS.
It's
> great, by the way, thanks a lot for it!
>
> I've found a problem with static libs for gcc: even
if the xml name of the
> lib is "x", while outtype="shared" correctly creates
a libx.so,
> outtype="static" creates x.a, and not the expected
libx.a.
> The loader will fail, of course, since it expects
libx.*, not x.*.
>
> A simple workaround for this is to implement
getOutputFileName in
> gcc/AbstractArLibrarian.java and have it return "lib" +
> super.getOUtputFileName(basename). I tested it and
is solves my problem.
> I don't know though if it doesn't break other
things, or if there is any
> ohter workaournd for my original problem?
>
> TIA,
> /sorin gherman

Discussion

  • Curt Arnold
    Curt Arnold
    2003-02-17

    • status: open --> closed-fixed
     
  • Curt Arnold
    Curt Arnold
    2003-02-17

    Logged In: YES
    user_id=27193

    Accepted suggestion and added corresponding test
    TestAbstractArLibrary.testOutputFileName