]> git.tue.mpg.de Git - osl.git/commitdiff
The linker on MacOS 10.4 does not understand -Wl,-z,defs.
authorAndre Noll <maan@systemlinux.org>
Wed, 4 Jun 2008 13:44:28 +0000 (15:44 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 4 Jun 2008 13:44:28 +0000 (15:44 +0200)
Makefile

index 7204f88f535053b622048fbb1a0a2b0d80889674..3bcbfbe7a59645fe197e1414a3d1608463741c6e 100644 (file)
--- 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