Fix compilation on FreeBSD.
authorAndre Noll <maan@systemlinux.org>
Mon, 2 Feb 2009 18:27:13 +0000 (19:27 +0100)
committerAndre Noll <maan@systemlinux.org>
Mon, 2 Feb 2009 18:27:13 +0000 (19:27 +0100)
Makefile

index 0aff6beb99b3f42e4028cad88582457929d346fc..73fdcc3cc5cb96b7266a1273fcf6ce615bad6eba 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -78,6 +78,11 @@ ifeq ($(uname_s),NetBSD)
        LDFLAGS += -Wl,-soname,$(soname)
 endif
 
+ifeq ($(uname_s),FreeBSD)
+       format := elf
+       LDFLAGS += -Wl,-soname,$(soname)
+endif
+
 ifeq ($(format),elf)
        # On ELf-based systems, the following conventions apply (see dhweeler's
        # Program Library HOWTO):