I know the -l and -L options for link but I am looking to set the --start-group and --end-group and all my libraries into my C project (Properties) under CDT/Juno but where do I put this option ???? -Xlinker ?
Thanks Marc
You can insert this options through "Expert settings: Command line patterns".
To insert the options -Wl,--start-group
and -Wl,--end-group
you can edit this field. Follow the steps below:
from
${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}
to
${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} $(OBJS) -Wl,--start-group $(USER_OBJS) -Wl,--end-group $(LIBS)
Notice that we are open the variable ${INPUTS}
that's equal INPUT="$(OBJS) $(USER_OBJS) $(LIBS)"
. Check the result in the makefile generated.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With