Blame SOURCES/bcc-0.14.0-Add-KBUILD_MODNAME-flag-to-default-cflags.patch

a6780e
From 68abb51ed067c4317b991cec0bbc2ea4e7f6ddab Mon Sep 17 00:00:00 2001
a6780e
From: William Findlay <william@williamfindlay.com>
a6780e
Date: Wed, 17 Jun 2020 12:07:48 -0400
a6780e
Subject: [PATCH] Add KBUILD_MODNAME flag to default cflags
a6780e
a6780e
---
a6780e
 src/cc/frontends/clang/kbuild_helper.cc | 1 +
a6780e
 1 file changed, 1 insertion(+)
a6780e
a6780e
diff --git a/src/cc/frontends/clang/kbuild_helper.cc b/src/cc/frontends/clang/kbuild_helper.cc
a6780e
index db5ca7f6..e3aade89 100644
a6780e
--- a/src/cc/frontends/clang/kbuild_helper.cc
a6780e
+++ b/src/cc/frontends/clang/kbuild_helper.cc
a6780e
@@ -101,6 +101,7 @@ int KBuildHelper::get_flags(const char *uname_machine, vector<string> *cflags) {
a6780e
   cflags->push_back("-D__HAVE_BUILTIN_BSWAP16__");
a6780e
   cflags->push_back("-D__HAVE_BUILTIN_BSWAP32__");
a6780e
   cflags->push_back("-D__HAVE_BUILTIN_BSWAP64__");
a6780e
+  cflags->push_back("-DKBUILD_MODNAME=\"bcc\"");
a6780e
 
a6780e
   // If ARCH env variable is set, pass this along.
a6780e
   if (archenv)
a6780e
-- 
a6780e
2.25.4
a6780e