From dcca04bbb5806a91beba0bfb0cdae7b676f7b522 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 4 Jun 2008 15:44:28 +0200 Subject: [PATCH] The linker on MacOS 10.4 does not understand -Wl,-z,defs. --- Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.39.5