aboutsummaryrefslogtreecommitdiff
path: root/downstroke.egg
diff options
context:
space:
mode:
authorGene Pasquet <dev@etenil.net>2026-04-19 23:08:51 +0100
committerGene Pasquet <dev@etenil.net>2026-04-19 23:08:51 +0100
commit242edcd3678432e1cf26b30aa737cc14b3a0bf54 (patch)
tree64a2195f0a43cd17dd355d40140b3c28fb9d49d9 /downstroke.egg
parentced28f55d51284e2b17ce102001604e331b48192 (diff)
Fix linking to sdl2_mixer
Diffstat (limited to 'downstroke.egg')
-rw-r--r--downstroke.egg3
1 files changed, 2 insertions, 1 deletions
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))