mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-01 17:47:30 +01:00
libplugin: fix compilation issue on recent gccs.
They now use -fno-common by default, so duplicated variables cause
a link error:
/usr/bin/ld: common/utils.o:(.bss+0x10): multiple definition of `chainparams'; plugins/libplugin.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make: *** [Makefile:408: plugins/autoclean] Error 1
This was introduced in 9ebfdf0b8c
.
Fixes: #3597
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: Multiple definition of chainparams on Fedora (or other really recent gcc)
This commit is contained in:
parent
11c21f97a6
commit
72327f5cc2
1 changed files with 0 additions and 2 deletions
|
@ -20,8 +20,6 @@
|
||||||
|
|
||||||
#define READ_CHUNKSIZE 4096
|
#define READ_CHUNKSIZE 4096
|
||||||
|
|
||||||
const struct chainparams *chainparams;
|
|
||||||
|
|
||||||
bool deprecated_apis;
|
bool deprecated_apis;
|
||||||
|
|
||||||
struct plugin_timer {
|
struct plugin_timer {
|
||||||
|
|
Loading…
Add table
Reference in a new issue