opnsense-ports/sysutils/apt/files/patch-buildlib_environment.mak.in
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01: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