From 9352de797b9f2bceb77a7dfb0229c01f0ac1cd0d Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Mon, 13 Nov 2017 04:52:25 +0300 Subject: Continue attempt to make library and demo player runnable under OpenWatcom Because of broken STL containers, are very hard crashes in random places are can't be fixed with a full customizing of those containers. --- cmake/openwattcom-dos/ow-cmake.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'cmake/openwattcom-dos/ow-cmake.sh') diff --git a/cmake/openwattcom-dos/ow-cmake.sh b/cmake/openwattcom-dos/ow-cmake.sh index 921df11..60ebf6e 100755 --- a/cmake/openwattcom-dos/ow-cmake.sh +++ b/cmake/openwattcom-dos/ow-cmake.sh @@ -5,13 +5,17 @@ export WIPFC=$WATCOM/wipfc export INCLUDE="$WATCOM/h" WATCOM_FLAGS="-bdos4g -march=i386" export CFLAGS="$WATCOM_FLAGS -xc -std=wc" -export CXXFLAGS="$WATCOM_FLAGS -xc++ -xs -feh -std=c++11" +export CXXFLAGS="$WATCOM_FLAGS -xc++ -xs -feh -frtti -std=c++98" export LFLAGS="$WATCOM_FLAGS" +SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" +echo "Path to script ${SCRIPTPATH}" + # export PKG_CONFIG_LIBDIR="${WATCOM}/lib/pkgconfig" # djgpp_c_flags="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4" -SCRIPT_PATH=$HOME/_git_repos/libADLMIDI/cmake/openwattcom-dos +#SCRIPT_PATH=$HOME/_git_repos/libADLMIDI/cmake/openwattcom-dos +SCRIPT_PATH=$SCRIPTPATH CUSTOM_PATH=$SCRIPT_PATH:${WATCOM}/binl:$PATH if [[ "$1" != '--build' ]]; then -- cgit v1.2.3