about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/luabind/0.9.1_discover_luajit.patch
blob: 6e5fe6aa6f82d42097eefe3a56c9df31fbec4bfe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/Jamroot b/Jamroot
index 94494bf..83dfcbb 100755
--- a/Jamroot
+++ b/Jamroot
@@ -64,7 +64,7 @@ else if [ os.name ] in LINUX MACOSX FREEBSD
         $(LUA_PATH) $(HOME)/Library/Frameworks /Library/Frameworks /usr /usr/local /opt/local /opt ;
 
     local possible-suffixes =
-        include/lua5.1 include/lua51 include/lua include ;
+        include/lua5.1 include/lua51 include/lua include include/luajit-2.0 ;
 
     local includes = [ GLOB $(possible-prefixes)/$(possible-suffixes) : lua.h ] ;
 
@@ -83,7 +83,7 @@ else if [ os.name ] in LINUX MACOSX FREEBSD
 
     local lib = $(prefix)/lib ;
 
-    local names = liblua5.1 liblua51 liblua ;
+    local names = liblua5.1 liblua51 liblua libluajit-5.1 ;
     local extensions = .a .so ;
 
     library = [ GLOB $(lib)/lua51 $(lib)/lua5.1 $(lib)/lua $(lib) :