From: DeaDDooMER Date: Sun, 11 Jul 2021 15:55:55 +0000 (+0300) Subject: osx: fix library linking X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=38c57c930ec47a8cb5da5a2d0e7bdaa5c1e3a89a;p=d2df-sdl.git osx: fix library linking --- diff --git a/src/lib/fluidsynth/fluidsynth.pas b/src/lib/fluidsynth/fluidsynth.pas index de04206..37a610e 100644 --- a/src/lib/fluidsynth/fluidsynth.pas +++ b/src/lib/fluidsynth/fluidsynth.pas @@ -20,6 +20,7 @@ uses {$ENDIF} {$ELSEIF DEFINED(UNIX)} {$DEFINE FS_DYNAMIC} + {$LINKLIB libfluidsynth} const fluidlib = 'libfluidsynth.so'; {$ELSE} {$ERROR fluidsynth not supported on this platform. Fix it!} diff --git a/src/lib/gme/gme.pas b/src/lib/gme/gme.pas index e5f5e51..3c49e49 100644 --- a/src/lib/gme/gme.pas +++ b/src/lib/gme/gme.pas @@ -19,6 +19,7 @@ uses ctypes; {$ENDIF} {$ELSEIF DEFINED(UNIX)} {$DEFINE GME_DYNAMIC} + {$LINKLIB libgme} const gmelib = 'libgme.so'; {$ELSE} {$ERROR libgme not supported on this platform. Fix it!} diff --git a/src/lib/opus/opus.pas b/src/lib/opus/opus.pas index b236e47..85329e6 100644 --- a/src/lib/opus/opus.pas +++ b/src/lib/opus/opus.pas @@ -20,6 +20,8 @@ uses {$ENDIF} {$ELSEIF DEFINED(UNIX)} {$DEFINE OPUS_DYNAMIC} + {$LINKLIB libopus} + {$LINKLIB libopusfile} const opuslib = 'libopus.so'; const opusfilelib = 'libopusfile.so'; {$ELSE} diff --git a/src/lib/sdl2/sdl2.pas b/src/lib/sdl2/sdl2.pas index d5bb58e..a879c2d 100644 --- a/src/lib/sdl2/sdl2.pas +++ b/src/lib/sdl2/sdl2.pas @@ -160,6 +160,7 @@ const SDL_LibName = 'libSDL2.so.0'; {$ELSEIF DEFINED(UNIX)} {$IFDEF DARWIN} + {$LINKLIB libSDL2} SDL_LibName = 'libSDL2.dylib'; {$ELSE} {$IFDEF FPC} diff --git a/src/lib/xmp/xmp.pas b/src/lib/xmp/xmp.pas index 7f790ed..69d1e85 100644 --- a/src/lib/xmp/xmp.pas +++ b/src/lib/xmp/xmp.pas @@ -24,6 +24,7 @@ interface {$ENDIF} {$ELSEIF DEFINED(UNIX)} {$DEFINE XMP_DYNAMIC} + {$LINKLIB libxmp} {$IFDEF USE_XMP_LITE} const xmplib = 'libxmp-lite.so'; {$ELSE}