Page 1 of 1

What is -lgba in the gba template Makefile?

Posted: Mon Jan 09, 2017 4:00 am
by 0505gonzalez
Hello,

I wanted to add another library in addition to libgba, so I was trying to understand the Makefile for the gba examples. There is a line LIB := -lgba in the makefile. Can someone explain what "-lgba" is? Is it a flag specific to the arm gcc compiler? If so, can you guys point me to the documentation that explains what it does?

Re: What is -lgba in the gba template Makefile?

Posted: Mon Apr 16, 2018 10:21 am
by sverx
it tells the linker to link libgba library to your program
-l<library>