Skip to content

Commit

Permalink
Merge pull request #1617 from stan-dev/issues/standalone-bug-1613
Browse files Browse the repository at this point in the history
use correct LDLIBS variable to get correct order for compiling with g++, closes #1613
  • Loading branch information
wds15 authored Jan 15, 2020
2 parents 47b0595 + 9c661a2 commit 45dce15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions make/standalone
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ MATH ?= $(realpath $(MATH_MAKE)..)/
# The sundials libraries are only needed for
# programs using the stiff ode solver or the
# algebra solver
MATH_LIBS ?= $(TBB_TARGETS) $(LIBSUNDIALS) $(MPI_TARGETS)
MATH_LIBS ?= $(LIBSUNDIALS) $(MPI_TARGETS) $(TBB_TARGETS)

LDFLAGS += $(MATH_LIBS)
LDLIBS += $(MATH_LIBS)

math-libs : $(MATH_LIBS)

Expand Down

0 comments on commit 45dce15

Please sign in to comment.