projects
/
osl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
491ba5f
)
The linker on MacOS 10.4 does not understand -Wl,-z,defs.
author
Andre Noll
<maan@systemlinux.org>
Wed, 4 Jun 2008 13:44:28 +0000
(15:44 +0200)
committer
Andre Noll
<maan@systemlinux.org>
Wed, 4 Jun 2008 13:44:28 +0000
(15:44 +0200)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/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)
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
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)
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
DEBUG_CPPFLAGS += -Wno-sign-compare -g -Wunused -Wundef -W
DEBUG_CPPFLAGS += -Wredundant-decls
CPPFLAGS += -Os