Skip to content

Commit

Permalink
changed compile flag
Browse files Browse the repository at this point in the history
  • Loading branch information
JayHuLBL committed May 2, 2024
1 parent d2f8339 commit 6dfc8ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified Buildings/Resources/Library/linux64/libisat.so
Binary file not shown.
4 changes: 3 additions & 1 deletion Buildings/Resources/src/ISAT/Linux/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@ LIBS = -lpthread -lc -lgfortran -llapack -lblas

# Note that -fPIC is recommended on Linux according to the Modelica specification

# $(CC) -shared -fPIC -Wl,-soname,$(LIB) -o $(LIB) $(OBJS) libisatab_ser.a $(LIBS)

all: clean
mv $(FFD)modelica_ffd_common.h $(FFD)m1.h
cp $(ISAT)modelica_ffd_common.h $(FFD)
$(CC) $(CC_FLAGS_$(ARCH)) -fPIC -c $(SRCS)
$(CC) -shared -fPIC -Wl,-soname,$(LIB) -o $(LIB) $(OBJS) libisatab_ser.a $(LIBS)
$(CC) -shared -fPIC -Wl,-soname,$(LIB) -o $(LIB) $(OBJS) $(LIBS)
rm -f $(OBJS)
mv $(LIB) $(BINDIR)
@echo "==== library generated in $(BINDIR)"
Expand Down

0 comments on commit 6dfc8ef

Please sign in to comment.