build system (setup_project): Comment out seemingly useless workarounds

jocadbz
BodgeMaster 2023-06-18 07:53:35 +02:00
parent abc5491192
commit 20857cb8c5
1 changed files with 10 additions and 8 deletions

View File

@ -95,16 +95,18 @@ pushd dependencies/sockpp-0.8.1/ >/dev/null 2>&1
if uname -s | tr [:upper:] [:lower:] | grep cygwin >/dev/null; then if uname -s | tr [:upper:] [:lower:] | grep cygwin >/dev/null; then
echo "Adding Cygwin workaound for building sockpp." echo "Adding Cygwin workaound for building sockpp."
for FILE in "$(find ./ -type f)"; do #for FILE in "$(find ./ -type f)"; do
sed -i -e 's/_WIN32/PLEASE_DO_NOT_DEFINE_THIS_MACRO/g' $FILE # sed -i -e 's/_WIN32/PLEASE_DO_NOT_DEFINE_THIS_MACRO/g' $FILE
done #done
mv ./include/sockpp/socket.h ./include/sockpp/socket.h_original #mv ./include/sockpp/socket.h ./include/sockpp/socket.h_original
echo '#include <sys/time.h> #echo '#include <sys/time.h>
#include "socket.h_original"' > ./include/sockpp/socket.h ##include "socket.h_original"' > ./include/sockpp/socket.h
sed -i -e 's/SO_REUSEPORT/SO_REUSEADDR/g' ./src/acceptor.cpp sed -i -e 's/SO_REUSEPORT/SO_REUSEADDR/g' ./src/acceptor.cpp
CFLAGS="-D_XOPEN_SOURCE=700" CXXFLAGS="-D_XOPEN_SOURCE=700" cmake -Bbuild #CFLAGS="-D_XOPEN_SOURCE=700" CXXFLAGS="-D_XOPEN_SOURCE=700" cmake -Bbuild
CFLAGS="-D_XOPEN_SOURCE=700" CXXFLAGS="-D_XOPEN_SOURCE=700" cmake --build build #CFLAGS="-D_XOPEN_SOURCE=700" CXXFLAGS="-D_XOPEN_SOURCE=700" cmake --build build
cmake -Bbuild .
cmake --build build
else else
cmake -Bbuild . cmake -Bbuild .
cmake --build build cmake --build build