AROPT = cr export_dynamic = -Wl,-E rpath = -Wl,-R'$(rpathdir)' # Rule for building a shared library from a single .o file %.so: %.o $(CC) $(CFLAGS) $< $(LDFLAGS) $(LDFLAGS_SL) -shared -o $@