VortexQuake2 / Vortex

Quake 2 Vortex. vrxcl/revival.
http://q2vortex.com
GNU General Public License v2.0
15 stars 17 forks source link

Link with libm and libdl under Linux #155

Closed QwazyWabbitWOS closed 1 year ago

QwazyWabbitWOS commented 1 year ago

The linkage under Linux is incomplete. This can be demonstrated with ldd -r gamex86_64.so which shows the math library functions are not linked. When linking, binding to the math lib and lib loader needs to be added using the -lm and -ldl switches. This is accomplished by adding link_libraries(dl m) to the CMakeLIsts.txt to explicitly link to them.