Installed Mac Ports on OSX High Sierra
> sudo port install gcc11 libsdl2 openssl glfw libsdl2_gfx libsdl2_image libsdl2_mixer libsdl2_net libsdl2_ttf
and added the libs to the compile options: and that made the object code finally compile and not error out:
> CPUOPTIMIZATIONS?=-fcommon...