Skip to content

Commit

Permalink
- fix static gcc lib linking issue for g++ 4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
vwaurich authored and OpenModelica-Hudson committed Mar 21, 2016
1 parent dd0c8bd commit 5d60737
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Compiler/Template/CodegenFMUCpp.tpl
Expand Up @@ -790,10 +790,8 @@ case SIMCODE(modelInfo=MODELINFO(__), makefileParams=MAKEFILE_PARAMS(__), simula
ifeq ($(findstring USE_CPP_03,$(CFLAGS)),USE_CPP_03)
$(eval LIBS=$(LIBS) -L"$(BOOST_LIBS)" -l$(BOOST_SYSTEM_LIB))
$(eval BINARIES=$(BINARIES) $(BOOST_LIBS)/lib$(BOOST_SYSTEM_LIB)$(DLLEXT) <%platformbins%>)
endif

# link static gcc libs under Windows to avoid dependencies
ifeq ($(findstring win,$(PLATFORM)),win)
else ($(findstring win,$(PLATFORM)),win)
$(eval LIBS=$(LIBS) -static-libstdc++ -static-libgcc)
endif

Expand Down

0 comments on commit 5d60737

Please sign in to comment.