propeller gcc command line options ( -lm ?) repeated.

I'm using SimpleIDE and some command line sessions to compile c code using propeller gcc.
When I look at the log console, it shows the command line that SimpleIDE outputs to launch the compiler, linker, loader. I see multiple -lm
options and repeated libraries added to the command line:
propeller-elf-gcc -I . -L . -I /Users/[username]/Documents/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools -L /Users/[username]/Documents/SimpleIDE/Learn/Simple Libraries/Utility/libsimpletools/cmm/ -I /Users/[username]/Documents/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext -L /Users/[username]/Documents/SimpleIDE/Learn/Simple Libraries/TextDevices/libsimpletext/cmm/ -I /Users/[username]/Documents/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c -L /Users/[username]/Documents/SimpleIDE/Learn/Simple Libraries/Protocol/libsimplei2c/cmm/ -o cmm/Test Print.elf -Os -mcmm -m32bit-doubles -fno-exceptions -std=c99 Test Print.c -lm -lsimpletools -lsimpletext -lsimplei2c -lm -lsimpletools -lsimpletext -lm -lsimpletools -lm
Why are options like -lsimpletools
and -lm
repeated multiple times?
And, I can't find what -lm
is? I can only find -l<libraryname>
. Is m
a library?
Comments
libm is the math library
Thank you. Any idea about the repeated command line options?
IDK, the linker shouldn't care if something's in there twice.