summaryrefslogtreecommitdiff
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorMatt Fischer <matt.fischer@garmin.com>2013-04-15 09:44:48 -0500
committerMatt Fischer <matt.fischer@garmin.com>2013-04-19 16:46:24 -0500
commitabb0957198be8cb34c4dfa0dfd7e7eee13055f09 (patch)
tree23dfcdb8f5e86da4f775903ba469eda6e2c8926d /src/Makefile.am
parentbecfc2312367ee47993495745ec96d7be1a3b3ba (diff)
downloadlibunwind-abb0957198be8cb34c4dfa0dfd7e7eee13055f09.tar.gz
Added --enable-ptrace
This change adds a manual override to control building of the ptrace library, similar to the existing --enable-coredump option. The default is set based on the existence of sys/ptrace.h, allowing it to be automatically disabled for platforms that do not have ptrace.
Diffstat (limited to 'src/Makefile.am')
-rw-r--r--src/Makefile.am12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index adfbef36..5bc4b3e0 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -9,7 +9,10 @@ COMMON_SO_LDFLAGS = -XCClinker -nostartfiles
lib_LIBRARIES =
lib_LTLIBRARIES =
if !REMOTE_ONLY
-lib_LTLIBRARIES += libunwind.la libunwind-ptrace.la
+lib_LTLIBRARIES += libunwind.la
+if BUILD_PTRACE
+lib_LTLIBRARIES += libunwind-ptrace.la
+endif
if BUILD_COREDUMP
lib_LTLIBRARIES += libunwind-coredump.la
endif
@@ -22,8 +25,11 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libunwind-generic.pc
if !REMOTE_ONLY
-pkgconfig_DATA += unwind/libunwind.pc ptrace/libunwind-ptrace.pc \
- setjmp/libunwind-setjmp.pc
+pkgconfig_DATA += unwind/libunwind.pc setjmp/libunwind-setjmp.pc
+endif
+
+if BUILD_PTRACE
+pkgconfig_DATA += ptrace/libunwind-ptrace.pc
endif
if BUILD_COREDUMP