Skip to content

Commit 7aebef9

Browse files
committed
- YOU WILL NEED A NEW OMDev FOR THIS revision, just do SVN update on OMDev
- moved some binaries from /trunk into OMDev. + liblpsolve + libsqlite3 + liblapack-mingw.a + libblas-mingw.a + lib/libtmglib-mingw.a git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9130 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent be4552c commit 7aebef9

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

Compiler/BackEnd/SimCode.mo

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8985,8 +8985,9 @@ algorithm
89858985
true = "Windows_NT" ==& System.os();
89868986
str = "-l" +& str;
89878987
strs = getLibraryStringInGccFormat(Absyn.STRING("Lapack"));
8988-
strs = str :: "-llpsolve55" :: "-lmico2313" :: "-lws2_32" :: "-lregex" :: strs;
8989-
then strs;
8988+
strs = str :: "-lsqlite3" :: "-llpsolve55" :: "-lmico2313" :: "-lws2_32" :: "-lregex" :: strs;
8989+
then
8990+
strs;
89908991

89918992
// The library is not actually named libLapack.so.
89928993
// Which is a problem, since MSL says it does.
@@ -9004,7 +9005,8 @@ algorithm
90049005
case Absyn.STRING(str as "omcruntime")
90059006
equation
90069007
false = "Windows_NT" ==& System.os();
9007-
then System.getRuntimeLibs();
9008+
then
9009+
System.getRuntimeLibs();
90089010

90099011
// If the string contains a dot, it's a good path that should not be prefix -l
90109012
case Absyn.STRING(str)

Compiler/Makefile.compiler_subdirs.common

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ all : .testvariables .depend $(ALLMO) $(SRCSIGX)
1212
SUBDIRS = runtime parser modpar
1313
SRCHSRCDIR = $(SRCH:%.h=$(srcdir)/%.h)
1414

15-
# Don't link against sqlite until we actually need it -lsqlite3
16-
SQLITE3=
17-
1815
.SUFFIXES: .o .mo .h .c
1916
.PHONY: all vctarget absyn_subdir clean reallyclean $(SUBDIRS)
2017

Compiler/runtime/Makefile.common

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ endif
1919
RML_COMPAT=$(top_builddir)/c_runtime/meta/rml_compatibility.h
2020

2121
SRC = RTOpts_rml.c Print_rml.c System_rml.c Settings_rml.c \
22-
SimulationResults_rml.c IOStreamExt_rml.c Database_rml.c Socket_rml.c sqlite/sqlite3.c
22+
SimulationResults_rml.c IOStreamExt_rml.c Database_rml.c Socket_rml.c
2323

2424
CPPSRC = unitparser.cpp UnitParserExt_rml.cpp ptolemyio_rml.cpp \
2525
BackendDAEEXT_rml.cpp ErrorMessage.cpp Error_rml.cpp OptManager_rml.cpp \
@@ -82,4 +82,4 @@ ptolemyio_omc.o : ptolemyio.cpp $(RML_COMPAT)
8282
ErrorMessage.o : ErrorMessage.cpp ErrorMessage.hpp
8383

8484
clean:
85-
$(RM) -rf *.a *.o omc_communication.cc omc_communication.h omc_communication-* sqlite/*.o
85+
$(RM) -rf *.a *.o omc_communication.cc omc_communication.h omc_communication-*

Compiler/runtime/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ CC = @CC@
2424
CXX = @CXX@
2525
IDL = @IDLCMD@
2626
CXXFLAGS = $(CFLAGS)
27-
CPPFLAGS = -I$(RMLINCLUDE) -I$(top_builddir)/c_runtime -I$(top_builddir)/c_runtime/meta -I$(srcdir) -I. $(CORBAINCL) -Ilpsolve
27+
CPPFLAGS = -I$(RMLINCLUDE) -I$(top_builddir)/c_runtime -I$(top_builddir)/c_runtime/meta -I$(srcdir) -I. $(CORBAINCL)
2828

2929
include Makefile.common
3030

Compiler/runtime/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
#define CONFIG_DLL_EXT ".dll"
5757
#define CONFIG_OS "Windows_NT"
5858
#define CONFIG_CORBALIBS "-L$(OPENMODELICAHOME)/lib/omc -lmico2313"
59-
#define CONFIG_LPSOLVEINC "lp_lib.h"
59+
#define CONFIG_LPSOLVEINC "lpsolve/lp_lib.h"
6060
/* Windows is always "special" */
6161
#define CONFIG_SYSTEMLIBS mk_nil()
6262

0 commit comments

Comments
 (0)