aboutsummaryrefslogtreecommitdiff
path: root/cmake/openwattcom-dos/ow-cmake.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/openwattcom-dos/ow-cmake.sh')
-rwxr-xr-xcmake/openwattcom-dos/ow-cmake.sh8
1 files changed, 6 insertions, 2 deletions
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