Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library file name for macOS #1

Open
CCRDude opened this issue Jan 25, 2024 · 1 comment
Open

Library file name for macOS #1

CCRDude opened this issue Jan 25, 2024 · 1 comment

Comments

@CCRDude
Copy link

CCRDude commented Jan 25, 2024

I want to use libgit on macOS with FreePascal.

  {$IFDEF MSWINDOWS}
  libgit2_dll                 = 'git2.dll';
  {$ELSE}
  libgit2_dll                 = 'libgit2.so';
  {$ENDIF}```

On macOS, the file is called `libgit2.dylib`.
@todaysoftware
Copy link
Owner

OK should be a straight forward change I think, does look correct?

  {$IF DEFINED(MSWINDOWS)}
  libgit2_dll                 = 'git2.dll';
  {$ELSEIF DEFINED(MACOS)}
  libgit2_dll                 = 'libgit2.dylib';
  {$ELSE}
  libgit2_dll                 = 'libgit2.so';
  {$ENDIF}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants