Skip to content

Commit

Permalink
Add the fPIE linking flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebramwell committed Oct 5, 2023
1 parent 2002b7e commit 0006ffb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
1 change: 1 addition & 0 deletions scripts/spack/configs/docker/ubuntu20/spack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ spack:
cflags: -fPIC -pthread
cxxflags: -fPIC -pthread
fflags: -fPIC
ldflags: -fPIE
modules: []
operating_system: ubuntu20.04
paths:
Expand Down
9 changes: 0 additions & 9 deletions src/serac/infrastructure/tests/error_handling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,6 @@ class SlicErrorException : public std::exception {

namespace serac {

TEST(ErrorHandling, EquationSolverBadLinSolver)
{
LinearSolverOptions options;
NonlinearSolverOptions nonlin_options;
// Try a definitely wrong number to ensure that an invalid linear solver is detected
options.linear_solver = static_cast<LinearSolver>(-7);
EXPECT_THROW(EquationSolver(nonlin_options, options, MPI_COMM_WORLD), SlicErrorException);
}

// Only need to test this when AmgX is **not** available
#ifndef MFEM_USE_AMGX
TEST(ErrorHandling, EquationSolverAmgxNotAvailable)
Expand Down

0 comments on commit 0006ffb

Please sign in to comment.