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:
parent
ddfe9ae2a3
commit
c1c995d3fe
@ -3,4 +3,5 @@ EXE_INC = \
|
||||
-I$(LIB_SRC)/finiteVolume/lnInclude
|
||||
|
||||
LIB_LIBS = \
|
||||
-lfiniteVolume \
|
||||
-lmultiphaseSystem
|
||||
|
@ -10,6 +10,8 @@ EXE_INC = \
|
||||
-I../twoPhaseSystem/lnInclude
|
||||
|
||||
LIB_LIBS = \
|
||||
-lfiniteVolume \
|
||||
-lmeshTools \
|
||||
-lcompressibleTwoPhaseSystem \
|
||||
-lcompressibleTransportModels \
|
||||
-lfluidThermophysicalModels \
|
||||
|
@ -6,5 +6,6 @@ EXE_INC = \
|
||||
|
||||
EXE_LIBS = \
|
||||
-lblockMesh \
|
||||
-lfileFormats \
|
||||
-lmeshTools \
|
||||
-ldynamicMesh
|
||||
|
@ -6,7 +6,7 @@ EXE_INC = \
|
||||
-I$(LIB_SRC)/meshTools/lnInclude \
|
||||
-I$(LIB_SRC)/mesh/blockMesh/lnInclude
|
||||
|
||||
EXE_LIBS = \
|
||||
LIB_LIBS = \
|
||||
-lfiniteVolume \
|
||||
-lfileFormats \
|
||||
-lsurfMesh \
|
||||
|
@ -38,8 +38,10 @@ License
|
||||
#include <cstring>
|
||||
|
||||
#ifndef FULLDEBUG
|
||||
#ifndef NDEBUG
|
||||
#define NDEBUG
|
||||
#endif
|
||||
#endif
|
||||
#include <cassert>
|
||||
|
||||
using namespace Foam;
|
||||
|
@ -46,8 +46,10 @@ License
|
||||
#include "OSspecific.H"
|
||||
|
||||
#ifndef FULLDEBUG
|
||||
#ifndef NDEBUG
|
||||
#define NDEBUG
|
||||
#endif
|
||||
#endif
|
||||
#include <cassert>
|
||||
|
||||
using namespace Foam;
|
||||
|
@ -31,8 +31,10 @@ License
|
||||
#include "mathematicalConstants.H"
|
||||
|
||||
#ifndef FULLDEBUG
|
||||
#ifndef NDEBUG
|
||||
#define NDEBUG
|
||||
#endif
|
||||
#endif
|
||||
#include <cassert>
|
||||
|
||||
using namespace Foam::constant;
|
||||
|
@ -31,8 +31,10 @@ License
|
||||
#include "mathematicalConstants.H"
|
||||
|
||||
#ifndef FULLDEBUG
|
||||
#ifndef NDEBUG
|
||||
#define NDEBUG
|
||||
#endif
|
||||
#endif
|
||||
#include <cassert>
|
||||
|
||||
using namespace Foam::constant;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user