Set -DLUA_USE_LINUX compiler flag when internally building and static linking lua. This is required for lua plugin functionality on linux and macosx.

This commit is contained in:
mjbudd77 2021-07-18 15:41:29 -04:00
parent 2f5e23adfb
commit 34e4e03fe4
1 changed files with 2 additions and 1 deletions

View File

@ -101,12 +101,13 @@ else(WIN32)
pkg_search_module( LUA lua5.1 lua-5.1 )
add_definitions( -DHAVE_ASPRINTF ) # What system wouldn't have this?
add_definitions( -DLUA_USE_LINUX ) # This needs to be set when link LUA internally for linux and macosx
if(APPLE)
set( OPENGL_LDFLAGS "-framework OpenGL" )
else()
set( OPENGL_LDFLAGS ${OPENGL_LIBRARIES} )
set( SYS_LIBS -lrt -lpthread )
set( SYS_LIBS -lrt -lpthread -ldl)
endif()
endif(WIN32)