nut/Makedefs.cm3-gccdbg duplicates linker arguments
Philipp Burch <[email protected]> Wed, 23 Sep 2020 15:55:40 +0200
| Newsgroups | gmane.comp.hardware.microcontrollers.ethernut |
|---|---|
| Message-ID | <[email protected]> |
Hi everyone, I recently merged the latest trunk into branch devnut_tiva and noticed a linker warning when compiling an application for debugging: ld:tm4c1294ncpdt_flash.ld:12: warning: redeclaration of memory region `FLASH0' Looking at the linker command line, it was obvious that most of its argument are duplicated when compiling for the *cm3-gccdbg* target. The problem is that nut/Makedefs.cm3-gccdbg sets LDFLAGS with -g and also with all other flags (linker script, map, library directory, etc.). Those are afterwards duplicated by nut/app/Makevars.cm3-gcc. A fix is in r6914, branch devnut_tiva. Just in case someone else faces this warning as well. Bye, Philipp _______________________________________________ http://lists.egnite.de/mailman/listinfo/en-nut-discussion