pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/unicorn unicorn: update to 1.0.1nb2.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3b95d496df43
branches:  trunk
changeset: 346383:3b95d496df43
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Dec 31 13:14:51 2019 +0000

description:
unicorn: update to 1.0.1nb2.

Use LDFLAGS -- fixes RELRO build.

diffstat:

 emulators/unicorn/Makefile               |   5 +++--
 emulators/unicorn/distinfo               |   3 ++-
 emulators/unicorn/patches/patch-Makefile |  17 +++++++++++++++++
 3 files changed, 22 insertions(+), 3 deletions(-)

diffs (55 lines):

diff -r 9675dfaaeb6a -r 3b95d496df43 emulators/unicorn/Makefile
--- a/emulators/unicorn/Makefile        Tue Dec 31 13:10:11 2019 +0000
+++ b/emulators/unicorn/Makefile        Tue Dec 31 13:14:51 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.11 2019/11/03 19:24:34 rillig Exp $
+# $NetBSD: Makefile,v 1.12 2019/12/31 13:14:51 wiz Exp $
 
-PKGREVISION= 1
+PKGREVISION= 2
 .include "Makefile.common"
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
@@ -14,6 +14,7 @@
 .include "../../lang/python/application.mk"
 
 MAKE_ENV+=     UNICORN_QEMU_FLAGS=--python=${PYTHONBIN:Q}
+MAKE_ENV+=     UNICORN_QEMU_FLAGS=--extra-ldflags=\"${LDFLAGS:Q}\"
 
 ALL_ENV+=      USE_GENERIC_LIBDATADIR=yes
 
diff -r 9675dfaaeb6a -r 3b95d496df43 emulators/unicorn/distinfo
--- a/emulators/unicorn/distinfo        Tue Dec 31 13:10:11 2019 +0000
+++ b/emulators/unicorn/distinfo        Tue Dec 31 13:14:51 2019 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.5 2018/03/24 17:09:34 joerg Exp $
+$NetBSD: distinfo,v 1.6 2019/12/31 13:14:51 wiz Exp $
 
 SHA1 (unicorn-1.0.1.tar.gz) = 85c9d7aad2a87b110b729560ed9333b66018ca6a
 RMD160 (unicorn-1.0.1.tar.gz) = 599b7ce96fe4040a48561bd9474666583265960b
 SHA512 (unicorn-1.0.1.tar.gz) = edfe1f7bfbc1d20f5b62232057e194a937bc09db686ef2efadb33a54605029a53426432cdb2a29511385aacdb9343b3b3091af50a1909098d7cf6db3429eb966
 Size (unicorn-1.0.1.tar.gz) = 3241225 bytes
+SHA1 (patch-Makefile) = c050394e6bac19022f897e5c5952690a2f74bf09
 SHA1 (patch-bindings_python_setup.py) = 35b6a68a75e18bf6a0e8f7c745fee2e148f26c1c
 SHA1 (patch-bindings_python_unicorn_unicorn.py) = 0835b53b508400f0ca8464f09262c4c64a9a8a54
diff -r 9675dfaaeb6a -r 3b95d496df43 emulators/unicorn/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/unicorn/patches/patch-Makefile  Tue Dec 31 13:14:51 2019 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-Makefile,v 1.1 2019/12/31 13:14:51 wiz Exp $
+
+--- Makefile.orig      2017-04-20 06:14:24.000000000 +0000
++++ Makefile
+@@ -223,10 +223,10 @@ $(LIBRARY): qemu/config-host.h-timestamp
+ ifeq ($(UNICORN_SHARED),yes)
+ ifeq ($(V),0)
+       $(call log,GEN,$(LIBRARY))
+-      @$(CC) $(CFLAGS) -shared $(UC_TARGET_OBJ) uc.o list.o -o $(LIBRARY) $($(LIBNAME)_LDFLAGS)
++      @$(CC) $(CFLAGS) -shared $(UC_TARGET_OBJ) uc.o list.o -o $(LIBRARY) $($(LIBNAME)_LDFLAGS) $(LDFLAGS)
+       @-ln -sf $(LIBRARY) $(LIBRARY_SYMLINK)
+ else
+-      $(CC) $(CFLAGS) -shared $(UC_TARGET_OBJ) uc.o list.o -o $(LIBRARY) $($(LIBNAME)_LDFLAGS)
++      $(CC) $(CFLAGS) -shared $(UC_TARGET_OBJ) uc.o list.o -o $(LIBRARY) $($(LIBNAME)_LDFLAGS) $(LDFLAGS)
+       -ln -sf $(LIBRARY) $(LIBRARY_SYMLINK)
+ endif
+ ifeq ($(DO_WINDOWS_EXPORT),1)



Home | Main Index | Thread Index | Old Index