Currently using the following configuration options...
./configure --without-libsndfile --build=x86_64-apple-darwin19.2.0 --disable-apple2 --disable-gb --disable-gba --disable-lynx --disable-md --disable-nes --disable-ngp --disable-pce --disable-pce-fast --disable-pcfx --disable-psx --disable-sms --disable-snes --disable-snes-faust --disable-ssfplay --disable-vb --disable-wswan SDL_CFLAGS='-I/usr/local/include/SDL2 -static' CFLAGS='-O3' CXXFLAGS='-O3'
During the make process I get the following errors:
depbase=`echo mthreading/MThreading_POSIX.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
g++ -std=gnu++11 -fsigned-char -DHAVE_CONFIG_H -I../include -I../include -I../intl -fno-fast-math -fno-unsafe-math-optimizations -fomit-frame-pointer -fstrict-aliasing -Wall -Wshadow -Wempty-body -Wignored-qualifiers -Wvla -Wvariadic-macros -Wdisabled-optimization -Werror=write-strings -fno-pic -fno-pie -fno-PIC -fno-PIE -fwrapv -fjump-tables -mno-retpoline -mcmodel=small -fexceptions -O3 -MT mthreading/MThreading_POSIX.o -MD -MP -MF $depbase.Tpo -c -o mthreading/MThreading_POSIX.o mthreading/MThreading_POSIX.cpp &&\
mv -f $depbase.Tpo $depbase.Po
In file included from mthreading/MThreading_POSIX.cpp:29:
In file included from ../include/mednafen/mednafen.h:4:
../include/mednafen/types.h:22:4: warning: "Compiling with position-independent code generation enabled is not
recommended, for performance reasons." [-W#warnings]
#warning "Compiling with position-independent code generation enabled is not recommended, for performance reasons."
^
mthreading/MThreading_POSIX.cpp:585:2: warning: "Cond var semaphore" [-W#warnings]
#warning "Cond var semaphore"
^
mthreading/MThreading_POSIX.cpp:636:25: warning: 'if' initialization statements are a C++17 extension
[-Wc++17-extensions]
if(!Mutex_Lock(&sem->m);
^
mthreading/MThreading_POSIX.cpp:637:3: error: expected expression
return false;
^
mthreading/MThreading_POSIX.cpp:684:9: error: use of undeclared identifier 'SignalCond'
ret &= SignalCond(&sem->c);
^
mthreading/MThreading_POSIX.cpp:685:9: error: use of undeclared identifier 'UnlockMutex'
ret &= UnlockMutex(&sem->m);
^
3 warnings and 3 errors generated.
make[2]: *** [mthreading/MThreading_POSIX.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Any tips?