pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/pev Fix linking on !Linux Unix systems.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/312ef8682bfe
branches:  trunk
changeset: 426205:312ef8682bfe
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Mar 27 20:56:25 2020 +0000

description:
Fix linking on !Linux Unix systems.

diffstat:

 security/pev/distinfo                           |   3 ++-
 security/pev/patches/patch-src_plugins_Makefile |  24 ++++++++++++++++++++++++
 2 files changed, 26 insertions(+), 1 deletions(-)

diffs (42 lines):

diff -r ef9c614a3fc4 -r 312ef8682bfe security/pev/distinfo
--- a/security/pev/distinfo     Fri Mar 27 20:55:58 2020 +0000
+++ b/security/pev/distinfo     Fri Mar 27 20:56:25 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.6 2019/10/22 16:37:05 khorben Exp $
+$NetBSD: distinfo,v 1.7 2020/03/27 20:56:25 joerg Exp $
 
 SHA1 (pev-0.80.tar.gz) = 18dcb65269344b5047504cca8598477b33532bab
 RMD160 (pev-0.80.tar.gz) = 01ed4fa37c5349397dbd8aa3b592b9657e63acf8
@@ -8,3 +8,4 @@
 SHA1 (patch-src_pehash.c) = c31083fca0d98dc607eb4f8b338bd93dd714f594
 SHA1 (patch-src_pesec.c) = fa302aa9bf2f07558f6cef0c41b0cd9063df7706
 SHA1 (patch-src_plugins.c) = c85c5c3b918850c7383f30d2efdae38985cdd143
+SHA1 (patch-src_plugins_Makefile) = ef5357385db2ac15c4f853b296dfee3703fd62eb
diff -r ef9c614a3fc4 -r 312ef8682bfe security/pev/patches/patch-src_plugins_Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/pev/patches/patch-src_plugins_Makefile   Fri Mar 27 20:56:25 2020 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_plugins_Makefile,v 1.1 2020/03/27 20:56:25 joerg Exp $
+
+--- src/plugins/Makefile.orig  2020-03-27 18:10:48.425427652 +0000
++++ src/plugins/Makefile
+@@ -55,9 +55,7 @@ json: LIBNAME = $(json_LIBNAME)
+ json: $(json_OBJS)
+ 
+ $(PLUGINS):
+-ifeq ($(PLATFORM_OS), Linux)
+-      $(LINK) -shared -Wl,-soname,$(LIBNAME).so.1 $(LDFLAGS) -o ${plugins_BUILDDIR}/$(LIBNAME).so $^
+-else ifeq ($(PLATFORM_OS), Darwin)
++ifeq ($(PLATFORM_OS), Darwin)
+       $(LINK) -headerpad_max_install_names -dynamiclib \
+               -undefined dynamic_lookup -fno-common \
+               -flat_namespace -install_name $(LIBNAME).$(VERSION).dylib \
+@@ -65,6 +63,8 @@ else ifeq ($(PLATFORM_OS), Darwin)
+               $(LDFLAGS) -o ${plugins_BUILDDIR}/$(LIBNAME).dylib $^
+ else ifeq ($(PLATFORM_OS), CYGWIN)
+       $(LINK) -shared $(LDFLAGS) -o ${plugins_BUILDDIR}/$(LIBNAME).dll $^
++else
++      $(LINK) -shared -Wl,-soname,$(LIBNAME).so.1 $(LDFLAGS) -o ${plugins_BUILDDIR}/$(LIBNAME).so $^
+ endif
+ 
+ $(plugins_BUILDDIR)/%.o: %.c



Home | Main Index | Thread Index | Old Index