The sdl2_net package provides a cross-platform networking library.
Install SDL2_net by running the following commands:
./configure --prefix=/usr \ --disable-static \ --disable-sdltest \ --disable-examples && make
Now, as the root
user:
make install
--disable-static
: This
switch prevents installation of static versions of the libraries.
--disable-sdltest
--disable-examples
: These parameters disable linking
against a library that was deleted in SDL2.