소스 검색

fix: 编译参数少了pthread

chenxuuu 2 년 전
부모
커밋
ad3470dcbf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      bsp/linux/xmake.lua

+ 1 - 1
bsp/linux/xmake.lua

@@ -18,7 +18,7 @@ set_languages("c11", "cxx11")
 
 add_defines("__LUATOS__", "__XMAKE_BUILD__")
 add_cflags("-ffunction-sections","-fdata-sections", "-Wl,--gc-sections","-D_POSIX_C_SOURCE=199309L")
-add_ldflags("-ffunction-sections","-fdata-sections", "-Wl,--gc-sections", "-lreadline","-lm")
+add_ldflags("-ffunction-sections","-fdata-sections", "-Wl,--gc-sections", "-lreadline","-lm","-pthread")
 
 add_requires("libsdl")
 add_packages("libsdl")