@samitouri / QOSAMI-WSL / commits / 6703980d

spelling: libraries (#12958)

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>

Josh Soref committed May 21, 2025 at 14:00 UTC 6703980dc838e407f790d3589f16fde52c65b46c
3 files changed +6 -6
CMakeLists.txt
+1 -1
@@ -364,7 +364,7 @@ set(LINUX_LDFLAGS -target ${LLVM_TARGET}
364 -l:libc.a
365 -static)
366
367 -set(COMMON_LINUX_LINK_LIBRAIRIES configfile)
367 +set(COMMON_LINUX_LINK_LIBRARIES configfile)
368
369 if(DEFINED ENV{WSL_DEV_BINARY_PATH})
370 set(WSL_DEV_BINARY_PATH $ENV{WSL_DEV_BINARY_PATH})
cmake/FindLINUXBUILD.cmake
+3 -3
@@ -59,17 +59,17 @@ function(add_linux_library_no_sources target sources headers)
59 endfunction()
60
61
62 -function(add_linux_executable target sources headers librairies)
62 +function(add_linux_executable target sources headers libraries)
63 set(output "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE}/${target}")
64 set(output_unstripped "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE}/${target}.unstripped")
65
66 build_linux_objects("${sources}" "${headers}")
67
68 set(libs -lunwind -lc++abi -lc++)
69 - foreach(e ${librairies})
69 + foreach(e ${libraries})
70 set(libs ${libs} -l${e})
71
72 - # Note: This makes the assumption that all librairies are static (.a and not .so).
72 + # Note: This makes the assumption that all libraries are static (.a and not .so).
73 # Executables need to depend on both the target and the underlying library file, so that
74 # the libraries target get analyzed for changes, and the executable gets linked again if the .a files changed.
75 list(APPEND lib_targets "lib${e}")
src/linux/init/CMakeLists.txt
+2 -2
@@ -46,8 +46,8 @@ set(HEADERS
46 wslpath.h)
47
48 set(LINUX_CXXFLAGS ${LINUX_CXXFLAGS} -I "${CMAKE_CURRENT_LIST_DIR}/../netlinkutil")
49 -set(INIT_LIBRAIRIES ${COMMON_LINUX_LINK_LIBRARIES} netlinkutil plan9 mountutil configfile)
50 -add_linux_executable(init "${SOURCES}" "${HEADERS}" "${INIT_LIBRAIRIES}")
49 +set(INIT_LIBRARIES ${COMMON_LINUX_LINK_LIBRARIES} netlinkutil plan9 mountutil configfile)
50 +add_linux_executable(init "${SOURCES}" "${HEADERS}" "${INIT_LIBRARIES}")
51 add_dependencies(init localization)
52
53 set(INITRAMFS ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE}/initrd.img)