Simple; you can't. GCC has no such equivalent. Specify -l as a gcc parameter, create a linker script, call ld
, call 911 or whatever.
Not that such a pragma even makes sense. Libraries should be specified during the linking step. Such information simply doesn't belong inside a translation unit. A translation unit can be preprocessed, compiled and assembled even without a linking stage. The toolchain used by Visual Studio allows this because it is braindead and always performs linking.
You might want to save yourself some tedious typing and create a MakeFile for your project: GNU Make Manual