sdl12-compat: cmake: remove -lm and -lpthread from unix SDL_STATIC_LIBS:

From 7677b7ae855eb4eaf67d47db80bf7b30b90a7558 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 15 Jun 2021 23:20:24 +0300
Subject: [PATCH] cmake: remove -lm and -lpthread from unix SDL_STATIC_LIBS:

sdl12-compat doesn't use them. only -ldl is needed.
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 874f89f..f5587df 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -212,7 +212,7 @@ if(SDL12DEVEL)
       set(SDL_CFLAGS "-D_GNU_SOURCE=1 -D_REENTRANT")
       set(SDL_RLD_FLAGS "")  # !!! FIXME: this forces rpath, which we might want?
       set(SDL_LIBS "-lSDL")
-      set(SDL_STATIC_LIBS "-lm -ldl -lpthread")
+      set(SDL_STATIC_LIBS "-ldl")
       if(NOT STATICDEVEL)
         set(SDL_STATIC_LIBS "")
       endif()