ifeq ($(uname_s),Linux)
dso_opts := --shared -Wl,-soname,libosl.so.$(major_version)
dso_filename :=lib$(libname).so.$(major_version).$(minor_version).$(patchlevel_version)
+ # disallow undefined symbols
+ LDFLAGS += -Wl,-z,defs
endif
ifeq ($(uname_s),Darwin)
dso_opts := -dynamiclib -current_version $(major_version).$(minor_version) \
endif
all: $(dso_filename)
-# disallow undefined symbols
-LDFLAGS += -Wl,-z,defs
-
DEBUG_CPPFLAGS += -Wno-sign-compare -g -Wunused -Wundef -W
DEBUG_CPPFLAGS += -Wredundant-decls
CPPFLAGS += -Os