termux-packages/packages/dns2tcp/duplicate_symbol.patch
Henrik Grimler 5531ec27e5 dns2tcp: fix duplicate symbol debug
Error:

ld: error: duplicate symbol: debug
>>> defined at rr.c
>>>            rr.o:(debug)
>>> defined at main.c
>>>            main.o:(.bss+0x0)

happen when trying to build with android-ndk r22 or r23.
More info: https://go-review.googlesource.com/c/go/+/280312
2021-10-22 23:05:45 +02:00

12 lines
303 B
Diff

--- ./common/includes/debug.h.orig 2021-08-19 17:33:25.204243470 +0200
+++ ./common/includes/debug.h 2021-08-19 17:33:31.160911682 +0200
@@ -24,7 +24,7 @@
#include <stdio.h>
#include <time.h>
-int debug;
+int debug __attribute__((common));
#ifndef _WIN32
#define DPRINTF(level, fmt, args...) \