]> git.tue.mpg.de Git - osl.git/commitdiff
build: Simplify LDFLAGS setting.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 17 May 2020 19:44:40 +0000 (21:44 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 7 Jun 2020 19:52:29 +0000 (21:52 +0200)
There is no more reason to distinguish between the three supported
operating systems. In particular all three support -Wl,-z,defs by now.

Makefile

index ba61ef7769a258d2f2453d52fa5b374f54711553..86cdc8f5fcb7661db53911340dd6245a44f52f4b 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -49,18 +49,9 @@ LIBCFLAGS += -fvisibility=hidden
 
 libname := osl
 
-ifeq ($(uname_s),Linux)
-       LDFLAGS += -Wl,-soname,$(soname)
-       # disallow undefined symbols
-       LDFLAGS += -Wl,-z,defs
-endif
-ifeq ($(uname_s),NetBSD)
-       LDFLAGS += -Wl,-soname,$(soname)
-endif
-
-ifeq ($(uname_s),FreeBSD)
-       LDFLAGS += -Wl,-soname,$(soname)
-endif
+LDFLAGS += -Wl,-soname,$(soname)
+# disallow undefined symbols
+LDFLAGS += -Wl,-z,defs
 
 # On ELf-based systems, the following conventions apply (see dhweeler's
 # Program Library HOWTO):