aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/Lua/ULua.pas7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/Lua/ULua.pas b/src/lib/Lua/ULua.pas
index e05de12c..dfaaa37f 100644
--- a/src/lib/Lua/ULua.pas
+++ b/src/lib/Lua/ULua.pas
@@ -9,6 +9,10 @@ unit ULua;
interface
+{$IFDEF FPC}
+ {$MODE Delphi}
+{$ENDIF}
+
{$IFDEF UNIX}
uses
dl;
@@ -30,7 +34,8 @@ const
{$ENDIF}
{$IFDEF UNIX}
{$IFDEF DARWIN}
- LuaDLL = 'lua5.1.dylib';
+ LuaDLL = 'liblua.dylib';
+ {$linklib liblua}
{$ELSE}
LuaDLL = 'lua5.1.so';
{$ENDIF}