Index | Thread | Search

From:
Theo Buehler <tb@theobuehler.org>
Subject:
games/allegro: add ENDBR64
To:
ports@openbsd.org
Cc:
kettenis@openbsd.org
Date:
Sun, 25 Feb 2024 10:26:59 +0100

Download raw body.

Thread
liballeg is used by at the following ports, most of which also emit the
same warning. All global symbols are generated by the FUNC macro, so fix
that. There's no arm64 assembly as far as I can tell.

audio/dumb.log
games/capitan-sevilla.log
games/fifechan
games/fifengine
games/garden.log
games/opensonic.log
games/unknown-horizons
graphics/allegropng.log

ld: warning: _i_is_486: missing endbr64
ld: warning: _i_is_fpu: missing endbr64
ld: warning: _i_is_cyrix: missing endbr64
ld: warning: _i_cx_w: missing endbr64
ld: warning: _i_cx_r: missing endbr64
ld: warning: _i_is_cpuid_supported: missing endbr64
ld: warning: _i_get_cpuid_info: missing endbr64

Index: Makefile
===================================================================
RCS file: /cvs/ports/games/allegro/Makefile,v
diff -u -p -r1.22 Makefile
--- Makefile	26 Sep 2023 09:41:31 -0000	1.22
+++ Makefile	25 Feb 2024 09:19:58 -0000
@@ -4,7 +4,7 @@ COMMENT =	game programming library for C
 
 V =		4.2.3
 DISTNAME =	allegro-$V
-REVISION =	7
+REVISION =	8
 CATEGORIES =	games devel multimedia
 SHARED_LIBS =	alleg	1.0	# 4.2
 
Index: patches/patch-include_allegro_platform_alunixac_hin
===================================================================
RCS file: /cvs/ports/games/allegro/patches/patch-include_allegro_platform_alunixac_hin,v
diff -u -p -r1.2 patch-include_allegro_platform_alunixac_hin
--- patches/patch-include_allegro_platform_alunixac_hin	11 Mar 2022 19:04:05 -0000	1.2
+++ patches/patch-include_allegro_platform_alunixac_hin	25 Feb 2024 08:39:34 -0000
@@ -1,8 +1,9 @@
---- include/allegro/platform/alunixac.hin.orig	Tue Jan 12 02:01:05 2010
-+++ include/allegro/platform/alunixac.hin	Tue Jan 12 02:01:34 2010
-@@ -153,6 +153,9 @@
- /* Define if JACK DIGI driver is supported. */
- #undef ALLEGRO_WITH_JACKDIGI
+Index: include/allegro/platform/alunixac.hin
+--- include/allegro/platform/alunixac.hin.orig
++++ include/allegro/platform/alunixac.hin
+@@ -73,6 +73,9 @@
+ /* Define if constructor attribute is supported. */
+ #undef ALLEGRO_USE_CONSTRUCTOR
  
 +/* Define if SNDIO DIGI driver is supported. */
 +#undef ALLEGRO_WITH_SNDIODIGI
Index: patches/patch-src_amd64_asmdefs_inc
===================================================================
RCS file: patches/patch-src_amd64_asmdefs_inc
diff -N patches/patch-src_amd64_asmdefs_inc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_amd64_asmdefs_inc	25 Feb 2024 08:39:43 -0000
@@ -0,0 +1,12 @@
+Index: src/amd64/asmdefs.inc
+--- src/amd64/asmdefs.inc.orig
++++ src/amd64/asmdefs.inc
+@@ -25,7 +25,7 @@
+ #endif
+ 
+ #if defined ALLEGRO_UNIX
+-  #define FUNC(name)            .globl name ; _align_ ; .type name,@function ; name:
++  #define FUNC(name)            .globl name ; _align_ ; .type name,@function ; name: ; endbr64
+ #else
+   #define FUNC(name)            .globl name ; _align_ ; name:
+ #endif