mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 11:39:53 +00:00
win64-cross: Update MXE, drop upstreamed patches
This commit is contained in:
parent
b2b6a98d5e
commit
6153fa14c9
@ -4,7 +4,7 @@
|
||||
|
||||
FROM ubuntu:22.04
|
||||
|
||||
ENV MXE_VERSION=1707285df63b8590ce6b91c7ff3a5b56e3cc8980
|
||||
ENV MXE_VERSION=8fa8c126f64a0ca6d263c641632645db4f941f00
|
||||
|
||||
RUN apt-get update \
|
||||
&& DEBIAN_FRONTEND=noninteractive \
|
||||
@ -71,13 +71,6 @@ RUN V=1 MXE_VERBOSE=1 make -C /opt/mxe \
|
||||
MXE_PLUGIN_DIRS=plugins/gcc10 \
|
||||
sdl2
|
||||
|
||||
COPY libslirp.mk /opt/mxe/src/libslirp.mk
|
||||
COPY libslirp-1.patch /opt/mxe/src/libslirp-1.patch
|
||||
RUN V=1 MXE_VERBOSE=1 make -C /opt/mxe \
|
||||
MXE_TARGETS=x86_64-w64-mingw32.static \
|
||||
MXE_PLUGIN_DIRS=plugins/gcc10 \
|
||||
libslirp
|
||||
|
||||
RUN find /opt/mxe/usr -executable -type f -exec chmod a+x {} \;
|
||||
|
||||
ENV CROSSPREFIX=x86_64-w64-mingw32.static-
|
||||
|
@ -1,34 +0,0 @@
|
||||
From d1417aed0b335d03c67c998b17b72933764ccbe3 Mon Sep 17 00:00:00 2001
|
||||
From: Matt Borgerson <contact@mborgerson.com>
|
||||
Date: Mon, 23 Jan 2023 03:06:46 -0700
|
||||
Subject: [PATCH] Rename pingtest's slirp_inet_aton
|
||||
|
||||
---
|
||||
test/pingtest.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/test/pingtest.c b/test/pingtest.c
|
||||
index 3bb0488..04b63ce 100644
|
||||
--- a/test/pingtest.c
|
||||
+++ b/test/pingtest.c
|
||||
@@ -24,7 +24,7 @@
|
||||
#ifdef _WIN32
|
||||
//#include <sys/select.h>
|
||||
#include <winsock2.h>
|
||||
-int slirp_inet_aton(const char *cp, struct in_addr *ia)
|
||||
+int pingtest_inet_aton(const char *cp, struct in_addr *ia)
|
||||
{
|
||||
uint32_t addr = inet_addr(cp);
|
||||
if (addr == 0xffffffff) {
|
||||
@@ -33,7 +33,7 @@ int slirp_inet_aton(const char *cp, struct in_addr *ia)
|
||||
ia->s_addr = addr;
|
||||
return 1;
|
||||
}
|
||||
-#define inet_aton slirp_inet_aton
|
||||
+#define inet_aton pingtest_inet_aton
|
||||
#else
|
||||
#include <poll.h>
|
||||
#endif
|
||||
--
|
||||
2.34.1
|
||||
|
@ -1,19 +0,0 @@
|
||||
# This file is part of MXE. See LICENSE.md for licensing information.
|
||||
|
||||
PKG := libslirp
|
||||
$(PKG)_WEBSITE := https://gitlab.freedesktop.org/slirp/libslirp
|
||||
$(PKG)_IGNORE :=
|
||||
$(PKG)_VERSION := 4.7.0
|
||||
$(PKG)_SUBDIR := libslirp-v$($(PKG)_VERSION)
|
||||
$(PKG)_FILE := libslirp-v$($(PKG)_VERSION).tar.gz
|
||||
$(PKG)_CHECKSUM := 9398f0ec5a581d4e1cd6856b88ae83927e458d643788c3391a39e61b75db3d3b
|
||||
$(PKG)_URL := https://gitlab.freedesktop.org/slirp/$(PKG)/-/archive/v$($(PKG)_VERSION)/$($(PKG)_FILE)
|
||||
$(PKG)_DEPS := cc glib meson-wrapper
|
||||
|
||||
define $(PKG)_BUILD
|
||||
'$(MXE_MESON_WRAPPER)' $(MXE_MESON_OPTS) \
|
||||
$(PKG_MESON_OPTS) \
|
||||
--buildtype=plain \
|
||||
'$(BUILD_DIR)' '$(SOURCE_DIR)'
|
||||
'$(MXE_NINJA)' -C '$(BUILD_DIR)' -j '$(JOBS)' install
|
||||
endef
|
Loading…
Reference in New Issue
Block a user