From 980251cc5cdae1561d0de5152896d47191590af2 Mon Sep 17 00:00:00 2001 From: k-m_schindler Date: Sat, 3 Jan 2009 22:02:32 +0000 Subject: enable build on Mac OS X, probably Linux, too git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/Lua@1549 b956fd51-792f-4845-bead-9b4dfca2ff2c --- src/lib/Lua/ULua.pas | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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} -- cgit v1.2.3