Skip to content

Commit

Permalink
backend: Fix for missing _DYNAMIC declaration in musl libc
Browse files Browse the repository at this point in the history
The _DYNAMIC symbol is not declared in musl link.h causing a build
error. Decalare it manually to fix this.

Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
  • Loading branch information
naushir committed Mar 28, 2024
1 parent 276a829 commit 74da075
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libpisp/backend/backend_default_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
#include "common/pisp_pwl.hpp"
#include "pisp_be_config.h"

// musl doesn't declare _DYNAMIC in link.h, declare it manually, see:
// https://github.com/raspberrypi/libpisp/issues/25
extern ElfW(Dyn) _DYNAMIC[];

using json = nlohmann::json;

// Where it might be helpful we initialise some blocks with the "obvious" default parameters. This saves users the trouble,
Expand Down

0 comments on commit 74da075

Please sign in to comment.