aboutsummaryrefslogtreecommitdiff
path: root/cmake/openwattcom/ow-cmake.sh
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2017-11-13 04:52:25 +0300
committerWohlstand <admin@wohlnet.ru>2017-11-13 04:52:25 +0300
commit9352de797b9f2bceb77a7dfb0229c01f0ac1cd0d (patch)
tree82aad257a3e9c0ae03cdee4e9b867eb42e92bffd /cmake/openwattcom/ow-cmake.sh
parentb043032a89f38e2b3191a65dab9ae4e8202d48f3 (diff)
downloadlibADLMIDI-9352de797b9f2bceb77a7dfb0229c01f0ac1cd0d.tar.gz
libADLMIDI-9352de797b9f2bceb77a7dfb0229c01f0ac1cd0d.tar.bz2
libADLMIDI-9352de797b9f2bceb77a7dfb0229c01f0ac1cd0d.zip
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.
Diffstat (limited to 'cmake/openwattcom/ow-cmake.sh')
-rwxr-xr-xcmake/openwattcom/ow-cmake.sh7
1 files changed, 6 insertions, 1 deletions
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