COMP: fix some linkage issues for mingw

COMP: automatically add FlexLexer.h to MSwindows OSspecific

- useful, frequently forgotten step for cross-compiling
This commit is contained in:
Mark Olesen
2020-06-16 14:47:50 +02:00
parent ddfe9ae2a3
commit c1c995d3fe
10 changed files with 29 additions and 3 deletions

View File

@ -4,6 +4,18 @@ targetType=libo # Preferred library type
. ${WM_PROJECT_DIR:?}/wmake/scripts/AllwmakeParseArguments $*
#------------------------------------------------------------------------------
if [ -f /usr/include/FlexLexer.h ] && [ ! -f FlexLexer.h ]
then
echo "Adding FlexLexer.h link to ${PWD##*/} for cross-compilation"
ln -sf /usr/include/FlexLexer.h FlexLexer.h
if [ -d lnInclude ]
then
(cd lnInclude && ln -sf ../FlexLexer.h .)
fi
fi
unset COMP_FLAGS LINK_FLAGS
# Make object (non-shared by default)

View File

@ -3,15 +3,17 @@ EXE_INC = \
-I$(LIB_SRC)/fileFormats/lnInclude \
-I$(LIB_SRC)/surfMesh/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \
-I$(LIB_SRC)/transportModels/twoPhaseProperties/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude \
-I$(LIB_SRC)/dynamicMesh/lnInclude \
-I$(LIB_SRC)/transportModels/interfaceProperties/lnInclude \
-I$(LIB_SRC)/transportModels/twoPhaseProperties/lnInclude
LIB_LIBS = \
-lfiniteVolume \
-lfileFormats \
-lsurfMesh \
-lmeshTools \
-lsampling \
-ldynamicMesh \
-ltwoPhaseMixture \
-ltwoPhaseProperties