linkerarg and linkerparam problems

Help
Frank_S
2004-12-14
2013-04-24
  • Frank_S
    Frank_S
    2004-12-14

    Greetings all,

    I am compiling on Solaris8 and I need to specify a "-pthreads" option at link time.

    I have used the linkerarg tag like this:

       <linker>
          ...snip...
          <linkerarg value="-pthreads"/>
       </linker>

    but that puts a "-Wl,-pthreads".  I don't want the "-Wl,"

    I tried using the linkerparam tag the same way as the linkerarg tag, but that didn't do anything at all.  It seems as if it has not been implemented.

    What can I do?  I'm not sure how else (aside from going back to make) to get this to work.

    Is this a bug?  Or am I just doing something wrong?

    Thanks in advance,

    -FrankS

     
    • saber850
      saber850
      2005-01-10

      "-Wl,-pthreads" is a flag to the compiler which passes "-pthreads" to the linker.  That is what you wanted, isn't it?