Browse Source

* Fix library name

Michaël Van Canneyt 3 years ago
parent
commit
4df9da6c15
1 changed files with 9 additions and 0 deletions
  1. 9 0
      packages/gmp/src/libgmp.pp

+ 9 - 0
packages/gmp/src/libgmp.pp

@@ -46,8 +46,17 @@ const
 {$else}
 {$ifdef windows}
   GMPlibraryFileName = GMPExternal_library+'.dll';
+{$else}  
+{$ifdef darwin}
+  // macOS
+  GMPlibraryFileName = GMPExternal_library+'.dylib';
+{$else}  
+  // Generic unix
+  GMPlibraryFileName = GMPExternal_library+'.so';
+{$endif}
 {$endif}
 {$endif}
+
 { Pointers to basic pascal types, inserted by h2pas conversion program.}
 Type
   PLongint  = ^Longint;