Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

build.rs: Add KBUILD_CFLAGS_MODULE to cflags #247

Merged
merged 1 commit into from
Aug 15, 2020

Conversation

Bobo1239
Copy link
Contributor

KBUILD_CFLAGS_MODULE=-DMODULE isn't included in c_flags anymore on Linux 5.4+
due to some Makefile refactoring. We just do it ourselves for now.

Fixes #241.

KBUILD_CFLAGS_MODULE=-DMODULE isn't included in c_flags anymore on Linux 5.4+
due to some Makefile refactoring. We just do it ourselves for now.

Fixes fishinabarrel#241.
@alex alex requested a review from geofft August 14, 2020 13:44
@geofft
Copy link
Collaborator

geofft commented Aug 15, 2020

Successfully builds for me with KDIR=/lib/modules/5.7.0-2-amd64/build from Debian unstable. Thanks!

@geofft geofft merged commit e56c2af into fishinabarrel:master Aug 15, 2020
@Bobo1239 Bobo1239 deleted the cflags_module branch August 15, 2020 15:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

-DMODULE CFLAG doesn't propagate correctly to cargo on Arch Linux
2 participants