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

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