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/ow-cmake.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cmake/openwattcom/ow-cmake.sh') diff --git a/cmake/openwattcom/ow-cmake.sh b/cmake/openwattcom/ow-cmake.sh index 2e6dbe5..00d048d 100755 --- a/cmake/openwattcom/ow-cmake.sh +++ b/cmake/openwattcom/ow-cmake.sh @@ -6,12 +6,17 @@ export INCLUDE="$WATCOM/lh" WATCOM_FLAGS="-blinux" export CFLAGS="$WATCOM_FLAGS -xc -std=wc" export CXXFLAGS="$WATCOM_FLAGS -xc++ -xs -feh -std=c++11" +export LFLAGS="$WATCOM_FLAGS" + +SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" +echo "Path to self ${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 +#SCRIPT_PATH=$HOME/_git_repos/libADLMIDI/cmake/openwattcom +SCRIPT_PATH=$SCRIPTPATH CUSTOM_PATH=$SCRIPT_PATH:${WATCOM}/binl:$PATH if [[ "$1" != '--build' ]]; then -- cgit v1.2.3