]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Respect $(CROSS_COMPILE) when $(CC) is the default
authordann frazier <dann.frazier@canonical.com>
Mon, 9 Dec 2019 20:54:13 +0000 (13:54 -0700)
committerJes Sorensen <jsorensen@fb.com>
Thu, 16 Jan 2020 18:46:53 +0000 (13:46 -0500)
commitaced6fc9542077a69b00d05bc9cd66c12fc34950
tree3566b686444ab951ca531bd8e2e1fd57cfef67e1
parent027c099fd1a31fb3815e592de75d0791a22353b4
Respect $(CROSS_COMPILE) when $(CC) is the default

Commit 1180ed5 told make to only respect $(CROSS_COMPILE) when $(CC)
was unset. But that will never be the case, as make provides
a default value for $(CC). Change this logic to respect $(CROSS_COMPILE)
when $(CC) is the default. Patch originally by Helmet Grohne.

Fixes: 1180ed5 ("Makefile: make the CC definition conditional")
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Makefile