freebsd-ports/sysutils/apt/files/patch-buildlib_environment.mak.in
Martin Wilke dbc44398c0 APT is the Debian project's advanced front-end for dpkg. APT features complete
installation ordering, multiple source capability and several other unique
features.

WWW: http://packages.debian.org/apt

PR:		ports/105563
Submitted by:	Nick Barkas <snb at threerings.net>
2007-02-11 23:00:35 +00:00

18 lines
488 B
Makefile

--- buildlib/environment.mak.in.orig Thu Mar 2 05:56:30 2006
+++ buildlib/environment.mak.in Wed Oct 25 15:51:02 2006
@@ -65,7 +65,14 @@
ifneq ($(words $(filter linux-gnu gnu% %gnu,$(HOST_OS))),0)
SONAME_MAGIC=-Wl,-soname -Wl,
LFLAGS_SO=
-else
+endif
+
+ifneq ($(words $(filter freebsd% %freebsd,$(HOST_OS))),0)
+ SONAME_MAGIC=-Wl,-soname -Wl,
+ LFLAGS_SO=
+endif
+
+ifndef SONAME_MAGIC
# Do not know how to create shared libraries here.
ONLYSTATICLIBS = yes
endif