File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,20 +68,20 @@ if (MINGW)
6868 set (ADDRESS_MODEL 32)
6969 endif ()
7070 set (LDFLAGS "-ldflags=\" -s\" " )
71- set (CGO_LDFLAGS "cgo LDFLAGS: -L ${LUA_LIB_PATH} -lluasandbox -llua -lm" )
71+ set (CGO_LDFLAGS "cgo LDFLAGS: ${LUA_LIB_PATH} /libluasandbox.dll ${LUA_LIB_PATH} /liblua.dll -lm" )
7272 set (CPACK_GENERATOR "ZIP" )
7373elseif (APPLE )
7474 set (CPACK_GENERATOR "PackageMaker" )
7575 set (LDFLAGS "-ldflags=\" -linkmode=external\" " )
76- set (CGO_LDFLAGS "cgo LDFLAGS: -L ${LUA_LIB_PATH} -lluasandbox -llua -ldl -lm" )
76+ set (CGO_LDFLAGS "cgo LDFLAGS: ${LUA_LIB_PATH} /libluasandbox.dylib ${LUA_LIB_PATH} /liblua.dylib -ldl -lm" )
7777 set (LUA_SHARED_LIBRARY_SUFFIX ".so" )
7878elseif (UNIX )
7979 set (CPACK_GENERATOR "TGZ" )
8080 set (LDFLAGS "-ldflags=\" -s\" " )
8181 if (NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD" )
8282 set (LINK_DL "-ldl" )
8383 endif ()
84- set (CGO_LDFLAGS "cgo LDFLAGS: -L ${LUA_LIB_PATH} - Wl,-rpath,$ORIGIN/../lib -lluasandbox -llua ${LINK_DL} -lm" )
84+ set (CGO_LDFLAGS "cgo LDFLAGS: -Wl,-rpath,$ORIGIN/../lib ${LUA_LIB_PATH} /libluasandbox.so ${LUA_LIB_PATH} /liblua.so ${LINK_DL} -lm" )
8585
8686 find_program (DPKG_EXECUTABLE dpkg PATH_SUFFIXES bin )
8787
You can’t perform that action at this time.
0 commit comments