$NetBSD: patch-ba,v 1.2 2012/07/16 21:17:11 asau Exp $ --- src/Makefile.shlib.orig 2012-05-31 23:11:47.000000000 +0000 +++ src/Makefile.shlib @@ -175,19 +175,20 @@ ifeq ($(PORTNAME), bsdi) endif endif +ifeq ($(PORTNAME), dragonfly) + LINK.shared = $(COMPILER) -shared + ifdef soname + LINK.shared += -Wl,-x,-soname,$(soname) + endif +endif + ifeq ($(PORTNAME), freebsd) ifdef ELF_SYSTEM - ifdef SO_MAJOR_VERSION - shlib = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION) - endif LINK.shared = $(COMPILER) -shared ifdef soname LINK.shared += -Wl,-x,-soname,$(soname) endif else - ifdef SO_MAJOR_VERSION - shlib = lib$(NAME)$(DLSUFFIX).$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION) - endif LINK.shared = $(LD) -x -Bshareable -Bforcearchive endif endif