Skip to content

Commit

Permalink
Merge pull request pistacheio#1246 from dgreatwood/MakeDlLibraryDepen…
Browse files Browse the repository at this point in the history
…dency2

Fix: Improved Fix For Issue When dladdr not in libc
  • Loading branch information
kiplingw authored Sep 30, 2024
2 parents e07dc0b + e9cb3a5 commit bbc7015
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,15 @@ endif
# #1230.
# Note: If 'dl' is not available, per Meson it suggests that the
# functionality is provided by libc
deps_libpistache += dependency('dl', required: false)
has_dladdr_func = compiler.has_function('dladdr')
if not has_dladdr_func
libdl_dep += dependency('dl')
has_dladdr_func = compiler.has_function('dladdr', dependencies: libdl_dep)
if not has_dladdr_func
warning('Unable to find dladdr(), even when trying to link to libdl')
endif
libpistache_deps += libdl_dep
endif

version_array = []
if meson.version().version_compare('>=0.57.0')
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.6.20240919
0.4.7.20240930

0 comments on commit bbc7015

Please sign in to comment.