USE_LDOPT with multiple items
Posted: Mon Nov 24, 2025 3:58 pm
I was trying to add options to USE_LDOPT in the Makefile. I first had -lm alone and that appeared to work correctly. But when I added -lstdc++, then it didn't seem to add the linking for stdc++. Then I reversed it and only put -lstdc++. It seemed to link for stdc++ at that point correctly. But adding -lm after it caused the math additions to not occur.
The error I get if I put in -lstdc++ -lm for USE_LDOPT is:
/home/jcbless/Projects/ChibiStudio/tools/GNU Tools ARM Embedded/11.3.1 2022q3/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld: cannot find -lm,--defsym=__process_stack_size__=0x400,--defsym=__main_stack_size__=0x400: No such file or directory
So in any case it appears that it is not taking in multiple options. Am I correct about this. What can be done to correct this if I'm interpreting the issue correctly?
Thanks,
John
The error I get if I put in -lstdc++ -lm for USE_LDOPT is:
/home/jcbless/Projects/ChibiStudio/tools/GNU Tools ARM Embedded/11.3.1 2022q3/bin/../lib/gcc/arm-none-eabi/11.3.1/../../../../arm-none-eabi/bin/ld: cannot find -lm,--defsym=__process_stack_size__=0x400,--defsym=__main_stack_size__=0x400: No such file or directory
So in any case it appears that it is not taking in multiple options. Am I correct about this. What can be done to correct this if I'm interpreting the issue correctly?
Thanks,
John