There is no more reason to distinguish between the three supported
operating systems. In particular all three support -Wl,-z,defs by now.
-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):
# On ELf-based systems, the following conventions apply (see dhweeler's
# Program Library HOWTO):