summaryrefslogtreecommitdiffstats
path: root/buildrun.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2008-08-13 11:56:16 -0400
committerDave Brolley <brolley@redhat.com>2008-08-13 11:56:16 -0400
commit5da0b3b2512ad912a845ff0bab34263cbb4a1dfc (patch)
treed8765d5e69768980b8259e64b4122dcf9c8c452f /buildrun.cxx
parent7f7720519a6848403d91cc90269a04bade0dac2e (diff)
parentb01369baab6f5bd6887e99ad44048197e0d38c04 (diff)
downloadsystemtap-steved-5da0b3b2512ad912a845ff0bab34263cbb4a1dfc.tar.gz
systemtap-steved-5da0b3b2512ad912a845ff0bab34263cbb4a1dfc.tar.xz
systemtap-steved-5da0b3b2512ad912a845ff0bab34263cbb4a1dfc.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Conflicts: ChangeLog testsuite/ChangeLog
Diffstat (limited to 'buildrun.cxx')
-rw-r--r--buildrun.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/buildrun.cxx b/buildrun.cxx
index c2ebdce5..159e1c6e 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -87,6 +87,14 @@ compile_pass (systemtap_session& s)
string module_cflags = "EXTRA_CFLAGS";
o << module_cflags << " :=" << endl;
+
+ // XXX: This gruesome hack is needed on some kernels built with separate O=directory,
+ // where files like 2.6.27 x86's asm/mach-*/mach_mpspec.h are not found on the cpp path.
+ // This could be a bug in arch/x86/Makefile that names
+ // mflags-y += -Iinclude/asm-x86/mach-default
+ // but that path does not exist in an O= build tree.
+ o << module_cflags << " += -Iinclude2/asm/mach-default" << endl;
+
o << module_cflags << " += $(call stap_check_build, $(SYSTEMTAP_RUNTIME)/autoconf-hrtimer-rel.c, -DSTAPCONF_HRTIMER_REL,)" << endl;
o << module_cflags << " += $(call stap_check_build, $(SYSTEMTAP_RUNTIME)/autoconf-inode-private.c, -DSTAPCONF_INODE_PRIVATE,)" << endl;
o << module_cflags << " += $(call stap_check_build, $(SYSTEMTAP_RUNTIME)/autoconf-constant-tsc.c, -DSTAPCONF_CONSTANT_TSC,)" << endl;