unicorn: Fix build on SunOS.
This commit is contained in:
parent
27a7084305
commit
7a42139ae2
3 changed files with 27 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.16 2021/02/25 19:51:29 leot Exp $
|
||||
# $NetBSD: Makefile,v 1.17 2021/10/21 19:09:10 jperkin Exp $
|
||||
|
||||
.include "Makefile.common"
|
||||
|
||||
|
@ -12,6 +12,7 @@ USE_TOOLS+= gmake pkg-config
|
|||
|
||||
MAKE_ENV+= UNICORN_QEMU_FLAGS=--python=${PYTHONBIN:Q}
|
||||
MAKE_ENV+= UNICORN_QEMU_FLAGS=--extra-ldflags=\"${LDFLAGS:Q}\"
|
||||
MAKE_ENV+= CONFIG_SHELL=${CONFIG_SHELL:Q}
|
||||
|
||||
ALL_ENV+= USE_GENERIC_LIBDATADIR=yes
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
$NetBSD: distinfo,v 1.8 2021/10/07 13:49:51 nia Exp $
|
||||
$NetBSD: distinfo,v 1.9 2021/10/21 19:09:10 jperkin Exp $
|
||||
|
||||
RMD160 (unicorn-1.0.2.tar.gz) = 1e9c125e12afcc9674f9e85f56c14d6807b98a80
|
||||
SHA512 (unicorn-1.0.2.tar.gz) = e459c849407ce3e42e40035953f6236f69518d0626ba5233ca4a36e0c70f50f7bac56ecfe4432a9741ac178d982192f588c6cc9795eb2a38c95a04de741fa33c
|
||||
Size (unicorn-1.0.2.tar.gz) = 3735111 bytes
|
||||
SHA1 (patch-Makefile) = 1c69fa8838ad53397811bbe29fc41914dbcbdc6a
|
||||
SHA1 (patch-Makefile) = a4cee3d8f880515e10dd053a6d2e93ea019f34d7
|
||||
SHA1 (patch-bindings_python_setup.py) = 035888ce0599abb8ef4670fffb051cb1510d9a29
|
||||
SHA1 (patch-bindings_python_unicorn_unicorn.py) = d7653d205bc999b8c53941c161771b8f72fcfa6e
|
||||
|
|
|
@ -1,8 +1,29 @@
|
|||
$NetBSD: patch-Makefile,v 1.2 2021/02/25 19:47:51 leot Exp $
|
||||
$NetBSD: patch-Makefile,v 1.3 2021/10/21 19:09:10 jperkin Exp $
|
||||
|
||||
--- Makefile.orig 2020-10-21 11:34:41.000000000 +0000
|
||||
+++ Makefile
|
||||
@@ -305,10 +305,10 @@ $(LIBRARY): $(UC_OBJ_ALL)
|
||||
@@ -218,7 +218,11 @@ else
|
||||
EXT = so
|
||||
VERSION_EXT = $(EXT).$(API_MAJOR)
|
||||
AR_EXT = a
|
||||
+ifneq ($(filter SunOS%,$(UNAME_S)),)
|
||||
+$(LIBNAME)_LDFLAGS += -Wl,-soname,lib$(LIBNAME).$(VERSION_EXT)
|
||||
+else
|
||||
$(LIBNAME)_LDFLAGS += -Wl,-Bsymbolic-functions,-soname,lib$(LIBNAME).$(VERSION_EXT)
|
||||
+endif
|
||||
UNICORN_CFLAGS += -fvisibility=hidden
|
||||
endif
|
||||
|
||||
@@ -290,7 +294,7 @@ all: unicorn
|
||||
|
||||
qemu/config-host.mak: qemu/configure
|
||||
cd qemu && \
|
||||
- ./configure --cc="${CC}" --extra-cflags="$(UNICORN_CFLAGS)" --target-list="$(UNICORN_TARGETS)" ${UNICORN_QEMU_FLAGS}
|
||||
+ $(CONFIG_SHELL) ./configure --cc="${CC}" --extra-cflags="$(UNICORN_CFLAGS)" --target-list="$(UNICORN_TARGETS)" ${UNICORN_QEMU_FLAGS}
|
||||
@printf "$(UNICORN_ARCHS)" > config.log
|
||||
|
||||
uc.o: qemu/config-host.mak FORCE
|
||||
@@ -305,10 +309,10 @@ $(LIBRARY): $(UC_OBJ_ALL)
|
||||
ifeq ($(UNICORN_SHARED),yes)
|
||||
ifeq ($(V),0)
|
||||
$(call log,GEN,$(LIBRARY))
|
||||
|
|
Loading…
Reference in a new issue