Fix building on Linux.
This commit is contained in:
parent
99a4f8b6ea
commit
96d1a00ac9
2
makefile
2
makefile
|
@ -11,6 +11,8 @@ MODULES := rlgl physac
|
||||||
|
|
||||||
ifeq ($(OS),Windows_NT)
|
ifeq ($(OS),Windows_NT)
|
||||||
LDFLAGS += -lopengl32 -lgdi32 -lwinmm -static
|
LDFLAGS += -lopengl32 -lgdi32 -lwinmm -static
|
||||||
|
else
|
||||||
|
LDFLAGS += -ldl -lX11 -lpthread
|
||||||
endif
|
endif
|
||||||
|
|
||||||
BOOT_FILES := src/raylib.lua src/raylua.lua
|
BOOT_FILES := src/raylib.lua src/raylua.lua
|
||||||
|
|
|
@ -77,8 +77,8 @@ for _,modname in ipairs(modules) do
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Strip spaces
|
-- Strip spaces
|
||||||
line = line:gsub("([(),*.]) +(%w)", function (a, b) return a .. b end)
|
line = line:gsub("([(),*.])%s+(%w)", function (a, b) return a .. b end)
|
||||||
line = line:gsub("(%w) +([(),*.])", function (a, b) return a .. b end)
|
line = line:gsub("(%w)%s+([(),*.])", function (a, b) return a .. b end)
|
||||||
|
|
||||||
proto[#proto + 1] = line:gsub(";", "")
|
proto[#proto + 1] = line:gsub(";", "")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue