mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-22 19:35:34 +00:00
Haiku support patches (#989)
* Haiku: fix broken gcc strong stack protector * qemu: Backport minor Haiku fix We need to push this fix upstream to qemu. If we don't get it upstreamed, i'll circle back and patch it if Unicorn updates its qemu version. Backports commit c7be4a2160e15089563f207752fb346a38db18ec from unicorn
This commit is contained in:
parent
b4bb7edfe8
commit
80b94a546f
9
Makefile
9
Makefile
|
@ -139,6 +139,15 @@ UNICORN_CFLAGS := $(UNICORN_CFLAGS:-fPIC=)
|
|||
$(LIBNAME)_LDFLAGS += -Wl,--output-def,unicorn.def
|
||||
DO_WINDOWS_EXPORT = 1
|
||||
|
||||
# Haiku
|
||||
else ifneq ($(filter Haiku%,$(UNAME_S)),)
|
||||
EXT = so
|
||||
VERSION_EXT = $(EXT).$(API_MAJOR)
|
||||
AR_EXT = a
|
||||
$(LIBNAME)_LDFLAGS += -Wl,-Bsymbolic-functions,-soname,lib$(LIBNAME).$(VERSION_EXT)
|
||||
UNICORN_CFLAGS := $(UNICORN_CFLAGS:-fPIC=)
|
||||
UNICORN_QEMU_FLAGS += --disable-stack-protector
|
||||
|
||||
# Linux, Darwin
|
||||
else
|
||||
EXT = so
|
||||
|
|
|
@ -51,7 +51,11 @@
|
|||
#include <sys/mman.h>
|
||||
#include <libgen.h>
|
||||
#include <setjmp.h>
|
||||
#ifdef __HAIKU__
|
||||
#include <posix/signal.h>
|
||||
#else
|
||||
#include <sys/signal.h>
|
||||
#endif
|
||||
#include "qemu/cutils.h"
|
||||
|
||||
#ifdef CONFIG_LINUX
|
||||
|
|
Loading…
Reference in a new issue