Skip to content

Commit 74da075

Browse files
committed
backend: Fix for missing _DYNAMIC declaration in musl libc
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 <[email protected]>
1 parent 276a829 commit 74da075

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libpisp/backend/backend_default_config.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
#include "common/pisp_pwl.hpp"
2121
#include "pisp_be_config.h"
2222

23+
// musl doesn't declare _DYNAMIC in link.h, declare it manually, see:
24+
// https://github.com/raspberrypi/libpisp/issues/25
25+
extern ElfW(Dyn) _DYNAMIC[];
26+
2327
using json = nlohmann::json;
2428

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

0 commit comments

Comments
 (0)