github.com/searKing/golang/go@v1.2.117/runtime/cgosymbolizer/cgo_boost_backtrace_link.go (about) 1 // Copyright 2021 The searKing Author. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build BOOST_STACKTRACE_USE_BACKTRACE_LINK 6 // +build BOOST_STACKTRACE_USE_BACKTRACE_LINK 7 8 package cgosymbolizer 9 10 /* 11 #cgo windows CXXFLAGS: 12 #cgo !windows CXXFLAGS: -DBOOST_STACKTRACE_USE_BACKTRACE -DBOOST_STACKTRACE_LINK 13 #cgo !windows LDFLAGS: -lboost_stacktrace_backtrace -ldl -lbacktrace -rdynamic 14 */ 15 import "C" 16 17 // https://www.boost.org/doc/libs/develop/doc/html/stacktrace/configuration_and_build.html