From e45578c4139edb01197019c2e95d1b4fa92ffc25 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 17 May 2020 21:44:40 +0200 Subject: [PATCH] build: Simplify LDFLAGS setting. There is no more reason to distinguish between the three supported operating systems. In particular all three support -Wl,-z,defs by now. --- Makefile | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index ba61ef7..86cdc8f 100644 --- 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): -- 2.39.2