Skip to content

Commit

Permalink
Fix dynamic library name on Macos
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Dec 2, 2024
1 parent 19410db commit 5a55f01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion recipes/sentrylibrary/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ def send_sentry_debug_files(self, binary_basename):
if self.package_type == "application":
binary_name = binary_basename
else:
binary_name = binary_basename + ('.so' if self.options.get_safe("shared", True) else '.a')
if self.options.get_safe("shared", True):
extension = "dylib" if self.settings.os == "Macos" else "so"
else:
extension = "a"
binary_name = f"{binary_basename}.{extension}"

if self.settings.os == "Linux":
self.output.info("Stripping debug symbols from binary")
Expand Down

0 comments on commit 5a55f01

Please sign in to comment.