Skip to content

Commit 1055487

Browse files
committed
SDL2: fix build with gcc 14
1 parent cd27d03 commit 1055487

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

devel/SDL2/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,13 @@ CONFIGURE_ARGS+= --disable-ssemath
5353
CONFIGURE_ARGS+= --disable-sse2
5454
.endif
5555

56+
.include "../../mk/compiler.mk"
57+
58+
.if ${CC_VERSION:Mclang-*} || ${CC_VERSION:Mgcc-1*}
59+
CXXFLAGS+= -Wno-incompatible-pointer-types
60+
CFLAGS+= -Wno-incompatible-pointer-types
61+
.endif
62+
5663
PKGCONFIG_OVERRIDE+= sdl2.pc.in
5764

5865
CHECK_PORTABILITY_SKIP+= build-scripts/androidbuildlibs.sh

0 commit comments

Comments
 (0)