From: Andre Noll Date: Sun, 17 May 2020 19:44:40 +0000 (+0200) Subject: build: Simplify LDFLAGS setting. X-Git-Tag: v0.2.0~8^2~4 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=e45578c4139edb01197019c2e95d1b4fa92ffc25;p=osl.git 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. --- 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):