Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - How to add --start-group / --end-group to a makefile created by The Momentics IDE ??: (4 Items)
   
How to add --start-group / --end-group to a makefile created by The Momentics IDE ??  

Hi,

I have to resolve a cyclic library dependency. Is there a way to include --start-group /--end-group to the linker 
command line ?

--Armin 
Re: How to add --start-group / --end-group to a makefile created by The Momentics IDE ??  
The handling of the LDFLAGS seems far too simple!!!

I have patched the "qmacros.mk" in order to include --start-group / --end-group ....

--Armin
Re: How to add --start-group / --end-group to a makefile created by The Momentics IDE ??  
say you have

LIBS+=a b c

and you want

-la -Wl,--start-group -lb -lc -Wl,--end-group

then you would do something like

LIBS+=a b c
LIBPREF_b=-Wl,--start-group
LIBPOST_c=-Wl,--end-group

On 13-04-09 2:39 PM, Armin Steinhoff wrote:
> The handling of the LDFLAGS seems far too simple!!!
>
> I have patched the "qmacros.mk" in order to include --start-group / --end-group ....
>
> --Armin
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post100414
> To cancel your subscription to this discussion, please e-mail general-toolchain-unsubscribe@community.qnx.com

-- 
cburgess@qnx.com

Re: How to add --start-group / --end-group to a makefile created by The Momentics IDE ??  
OK ... it works, but I have to change "common.mk". Also the variant of
the library must be used .. suffix "_g" e.g.
There is no way to do it with the IDE ?

Thanks a lot

--Armin


Colin Burgess wrote:
> say you have
>
> LIBS+=a b c
>
> and you want
>
> -la -Wl,--start-group -lb -lc -Wl,--end-group
>
> then you would do something like
>
> LIBS+=a b c
> LIBPREF_b=-Wl,--start-group
> LIBPOST_c=-Wl,--end-group
>
> On 13-04-09 2:39 PM, Armin Steinhoff wrote:
>> The handling of the LDFLAGS seems far too simple!!!
>>
>> I have patched the "qmacros.mk" in order to include --start-group / --end-group ....
>>
>> --Armin
>>
>>
>>
>>
>> _______________________________________________
>>
>> General
>> http://community.qnx.com/sf/go/post100414
>> To cancel your subscription to this discussion, please e-mail general-toolchain-unsubscribe@community.qnx.com