From dbbfe0fd4026bf6217db5b22a0344bb964c05e97 Mon Sep 17 00:00:00 2001 From: endolith Date: Wed, 8 Apr 2015 21:14:55 -0400 Subject: [PATCH] add ::-lm to compile.link This fixes https://github.com/UECIDE/UECIDE/issues/73 according to http://uecide.org/forum/viewtopic.php?f=9&t=355 --- compilers/arm-teensy3-gcc/windows/files/compiler.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compilers/arm-teensy3-gcc/windows/files/compiler.txt b/compilers/arm-teensy3-gcc/windows/files/compiler.txt index d4c516e..8ec3d40 100755 --- a/compilers/arm-teensy3-gcc/windows/files/compiler.txt +++ b/compilers/arm-teensy3-gcc/windows/files/compiler.txt @@ -18,7 +18,7 @@ compile.c=${gcc}::${cflags}::${core.flags}::${board.flags}::-o::${object.name}:: compile.cpp=${gpp}::${cppflags}::${core.flags}::${board.flags}::-o::${object.name}::-c::${source.name}::${includes} -compile.link=${gcc}::${ldflags}::${core.ldflags}::${board.ldflags}::-o::${build.path}/${filename}.elf::${object.filelist}::-L${build.path}::-L${cache.root}::-Wl,--start-group::${libraries}::-Wl,--end-group +compile.link=${gcc}::${ldflags}::${core.ldflags}::${board.ldflags}::-o::${build.path}/${filename}.elf::${object.filelist}::-L${build.path}::-L${cache.root}::-Wl,--start-group::${libraries}::-Wl,--end-group::-lm ldflags=-Wl,--gc-sections,-u,main::-mthumb::-mcpu=${build.cpu}::-T${core.root}/api/${build.linkscript}