diff options
author | Martin Mares <mj@ucw.cz> | 2022-01-21 14:27:49 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2022-01-21 14:27:49 +0100 |
commit | cdc56c65abb83b9e03a2de70fafa3e08fbce788e (patch) | |
tree | cd7e69fb9c8b7fefc10099853e0d25eb7be1126a | |
parent | 9f7681202fcfaefd02e202eb64c01eb9e962729d (diff) | |
download | pciutils-cdc56c65abb83b9e03a2de70fafa3e08fbce788e.tar.gz |
Another try at choosing the default compiler
Cross-compilers often provide only "gcc" and not "cc".
So let's try "cc" when building natively and "gcc" when cross-compiling.
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -45,7 +45,11 @@ PKGCFDIR=$(LIBDIR)/pkgconfig INSTALL=install DIRINSTALL=install -d STRIP=-s -CC=$(CROSS_COMPILE)cc +ifdef CROSS_COMPILE +CC=$(CROSS_COMPILE)gcc +else +CC=cc +endif AR=$(CROSS_COMPILE)ar RANLIB=$(CROSS_COMPILE)ranlib |