diff --git a/premake5.lua b/premake5.lua index 70a0239..400efc5 100644 --- a/premake5.lua +++ b/premake5.lua @@ -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" }