1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
AROPT = cr DLSUFFIX = .so ifeq ($(GCC), yes) CFLAGS_SL = -fpic else CFLAGS_SL = -PIC endif ifeq ($(GXX), yes) CXXFLAGS_SL = -fPIC else CXXFLAGS_SL = -PIC endif %.so: %.o $(LD) -assert pure-text -Bdynamic -o $@ $<