Skip to content

Commit 1c1f708

Browse files
smcvsezero
authored andcommitted
Only emit dlopen note for SDL_FRIBIDI_DYNAMIC if not a hard dependency
Fixes: 65b3672 "unix: Mark SDL_FRIBIDI_DYNAMIC as a weak dependency" Thanks: Anonymous Maarten
1 parent 65b3672 commit 1c1f708

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/core/unix/SDL_fribidi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@
2525
#include "SDL_fribidi.h"
2626
#include <fribidi.h>
2727

28+
#ifdef SDL_FRIBIDI_DYNAMIC
2829
SDL_ELF_NOTE_DLOPEN(
2930
"fribidi",
3031
"Bidirectional text support",
3132
SDL_ELF_NOTE_DLOPEN_PRIORITY_SUGGESTED,
3233
SDL_FRIBIDI_DYNAMIC
3334
);
35+
#endif
3436

3537
SDL_FriBidi *SDL_FriBidi_Create(void) {
3638
SDL_FriBidi *fribidi;

0 commit comments

Comments
 (0)