Add mention of needing to link to the dynamic linker on linux

If a user copy/pastes the code into their project, they need to link to the dynamic linker on linux platforms.
This commit is contained in:
Charles Giessen 2021-04-22 23:47:07 -06:00 committed by GitHub
parent 75db58ae8b
commit 95b82a9537
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,6 +86,12 @@ Copy the `src/VkBootstrap.h` and `src/VkBootstrap.cpp` files into your project,
`vk-bootstrap` is *not* a header only library, so no need to worry about macros in the header. `vk-bootstrap` is *not* a header only library, so no need to worry about macros in the header.
#### Linux specific
vk-bootstrap will load the required symbols at runtime, which requires that the application is linked to the system dynamic link.
How the dynamic linker is linked into the project depends on the build system in question.
If CMake is being used, link vk-bootstrap with `${CMAKE_DL_LIBS}`.
### git-submodule + CMake ### git-submodule + CMake
Add this project as a git-submodule into the root directory. Suggested is using a subdirectory to hold all submodules. Add this project as a git-submodule into the root directory. Suggested is using a subdirectory to hold all submodules.