sezero / quakespasm

QuakeSpasm -- A modern, cross-platform Quake game engine based on FitzQuake.
https://sourceforge.net/projects/quakespasm/
GNU General Public License v2.0
244 stars 97 forks source link

Add linker option -lm to fix undefined reference to GLIBC error #27

Closed DusteDdk closed 2 years ago

DusteDdk commented 2 years ago

I couldn't get it to compile, I'd get undefined reference to GLIBC from various places (depending on compile order), adding -lm to the link options fixed it.

sezero commented 2 years ago

Thanks. I moved -lm to the end of list and also added it to the SDL-1.2 project in a followup commit.