runtime: fix libunwind to compatible with homebrew linux
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
#if defined(__linux__)
|
||||
#define UNW_LOCAL_ONLY
|
||||
#ifndef _GNU_SOURCE
|
||||
#define _GNU_SOURCE
|
||||
#endif
|
||||
#include <features.h>
|
||||
#endif
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
LLGoPackage = "link"
|
||||
LLGoFiles = "_wrap/debug.c"
|
||||
LLGoPackage = "link: $(llvm-config --ldflags --libs); -lunwind"
|
||||
LLGoFiles = "$(llvm-config --cflags): _wrap/debug.c"
|
||||
)
|
||||
|
||||
type Info struct {
|
||||
|
||||
Reference in New Issue
Block a user