aboutsummaryrefslogtreecommitdiff
path: root/auto.def
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2016-10-26 19:50:35 +1000
committerSteve Bennett <steveb@workware.net.au>2016-10-26 19:50:35 +1000
commitb7efe69818d2d12c0f004a5aaca70cd2ed2f388a (patch)
treefaab93ce371b47df4ea257c6d7016cc36954cdd8 /auto.def
parent4bf945c9e873434f84fa55721cfaad76b11b2356 (diff)
downloadjimtcl-b7efe69818d2d12c0f004a5aaca70cd2ed2f388a.zip
jimtcl-b7efe69818d2d12c0f004a5aaca70cd2ed2f388a.tar.gz
jimtcl-b7efe69818d2d12c0f004a5aaca70cd2ed2f388a.tar.bz2
build: On NetBSD backtrace is in -lexecinfo
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'auto.def')
-rw-r--r--auto.def6
1 files changed, 5 insertions, 1 deletions
diff --git a/auto.def b/auto.def
index f39ebe3..5feb5f0 100644
--- a/auto.def
+++ b/auto.def
@@ -107,11 +107,15 @@ if {[cc-check-function-in-lib socket socket]} {
}
cc-check-functions ualarm lstat fork vfork system select execvpe
-cc-check-functions backtrace geteuid mkstemp realpath strptime isatty
+cc-check-functions geteuid mkstemp realpath strptime isatty
cc-check-functions regcomp waitpid sigaction sys_signame sys_siglist isascii
cc-check-functions syslog opendir readlink sleep usleep pipe getaddrinfo utimes
cc-check-functions shutdown socketpair isinf isnan link symlink fsync dup umask
+if {[cc-check-function-in-lib backtrace execinfo]} {
+ define-append LDLIBS [get-define lib_backtrace]
+}
+
if {[cc-check-functions sysinfo]} {
cc-with {-includes sys/sysinfo.h} {
cc-check-members "struct sysinfo.uptime"