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