From: Andre Noll Date: Wed, 4 Jun 2008 13:44:28 +0000 (+0200) Subject: The linker on MacOS 10.4 does not understand -Wl,-z,defs. X-Git-Tag: v0.1.0~87 X-Git-Url: http://git.tuebingen.mpg.de/?p=osl.git;a=commitdiff_plain;h=dcca04bbb5806a91beba0bfb0cdae7b676f7b522;ds=sidebyside The linker on MacOS 10.4 does not understand -Wl,-z,defs. --- diff --git a/Makefile b/Makefile index 7204f88..3bcbfbe 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,8 @@ libname := osl 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) \ @@ -32,9 +34,6 @@ ifeq ($(uname_s),NetBSD) 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