compile slibdir ldflags
