title: Usage of -l for arm-none-eabi-gcc
body: <p>I am trying to use a arm-none-eabi-gcc to compile some mbed code offline and ran into trouble when I tried to move the mbed folder outside the directory. The command that comes out of the make file is</p>
  
  <pre><code>arm-none-eabi-gcc -mcpu=cortex-m0plus -mthumb -Wl,--gc-sections --specs=nano.specs -u _printf_float -u _scanf_float -T../libraries//mbed/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/MKL25Z4.ld -L./mbed/TARGET_KL25Z/TOOLCHAIN_GCC_ARM -o Example.elf main.o ../libraries//mbed/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/retarget.o ../libraries//mbed/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/board.o ../libraries//mbed/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/cmsis_nvic.o ../libraries//mbed/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/mbed_overrides.o ../libraries//mbed/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/system_MKL25Z4.o ../libraries//mbed/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/startup_MKL25Z4.o -lmbed  -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -lmbed  -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys
  </code></pre>
  
  <p>The folder named mbed contains all the headers and .o files required for basic mbed programming. However, when I try to move the mbed folder to a different folder and address it relatively, I get an error saying:</p>
  
  <pre><code>cannot find -l../libraries/mbed
  </code></pre>
  
  <p>Is it wrong to give relative paths to the -l option? If yes, how do I work around this problem?</p>