linking static libraries best tips


i’d like to link a static library in some modules, instead of “shared” linking. the lib in this case is SoundTouch, which i “share” link this way:

LDFLAGS += -l:libSoundTouch.a

so the question is: what’s the correct way to link it “static”? this way, the target machine won’t got any problem in running it (user’s environment and library search path troubles).

can i direcly link it statically with the .a?

any tips? thanks