From 242edcd3678432e1cf26b30aa737cc14b3a0bf54 Mon Sep 17 00:00:00 2001 From: Gene Pasquet Date: Sun, 19 Apr 2026 23:08:51 +0100 Subject: Fix linking to sdl2_mixer --- downstroke.egg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'downstroke.egg') diff --git a/downstroke.egg b/downstroke.egg index cfbbc76..1a3a1d8 100644 --- a/downstroke.egg +++ b/downstroke.egg @@ -35,9 +35,10 @@ (component-dependencies downstroke.renderer downstroke.world downstroke.input downstroke.assets downstroke.animation)) ;; Link SDL2_mixer explicitly so downstroke.mixer.so lists libSDL2_mixer in ;; DT_NEEDED; otherwise Mix_* symbols can be undefined at dlopen time. + ;; csc requires "-L" before "-l..." so the flag is passed through to the linker. (extension downstroke.mixer (source "mixer.scm") - (csc-options "-lSDL2_mixer")) + (csc-options "-L" "-lSDL2_mixer")) (extension downstroke.sound (source "sound.scm") (component-dependencies downstroke.mixer)) -- cgit v1.2.3