Tags

,

gcc -shared -o test -Wl,--start-group -lblahlib -Wl,--end-group

-Wl in gcc is to call “ld” from gcc

–start-group and –end-group are for repeatedly search lib for circular dependency.

Advertisements