added runpath linker option as comment

This commit is contained in:
Sarah Faey 2024-09-24 23:28:18 +02:00
parent 8ffc827f20
commit c9c30f027b

View file

@ -18,6 +18,9 @@ project "Template"
links { "SDL2", "SDL2_image", "SDL2_ttf" }
--links { "SDL2", "SDL2_image", "GL", "GLEW", "SOIL", "fmod", "fmodstudio", "SDL2_ttf" }
--linkoptions { "-fuse-ld=gold" } --other linker
--set runpath to tell the generated executable where to find libraries:
--https://amir.rachum.com/shared-libraries/#rpath-and-runpath
--linkoptions { "-Wl,--enable-new-dtags,-rpath,'../External/FMOD/lib/x86_64'" }
--libdirs { "../External/FMOD/lib/x86_64" }
--includedirs { "../External/FMOD/inc" }