Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: mushakk on June 18, 2013, 06:30:41 pm

Title: Is there a way to pass arguments to ar (static library)
Post by: mushakk on June 18, 2013, 06:30:41 pm
I'm wondering is there is a way to pass arguments to the "ar" command, in the same way we can pass arguments to the linker.

Thanks in advance!
Title: Re: Is there a way to pass arguments to ar (static library)
Post by: oBFusCATed on June 18, 2013, 06:56:01 pm
No, in the project options. You have to modify the compiler's commands in the advanced settings of the compiler.
Title: Re: Is there a way to pass arguments to ar (static library)
Post by: mushakk on June 18, 2013, 07:12:00 pm
Then it can't be "per project"  :(

Do you know if there is some plan to do this in the future?
Title: Re: Is there a way to pass arguments to ar (static library)
Post by: MortenMacFly on June 18, 2013, 08:05:44 pm
Do you know if there is some plan to do this in the future?
You should first start with providing a use-case for this. You are the first asking for this feature since C::B is alive and kicking.

As a "work-around" you could just make a copy of a compiler, adjust the settings in the copied compiler and then use this for the projects where you need specific parameters. This leaves all other projects using the "default" compiler as-is.