mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user