--- Makefile.orig 2017-09-06 10:17:13.000000000 -0600 +++ Makefile 2018-01-11 10:23:07.741490000 -0700 @@ -39,7 +39,7 @@ LDFLAGS += $(shell pkg-config --libs libpci) ifeq ($(CC),"") -CC = gcc +CC ?= gcc endif ifdef STATIC_LIBPCI @@ -52,7 +52,7 @@ V = @ Q = $(V:1=) -QUIET_CC = $(Q:@=@echo ' CC '$@;) +#QUIET_CC = $(Q:@=@echo ' CC '$@;) all: x86info @@ -69,7 +69,7 @@ x86info: $(X86INFO_OBJS) $(X86INFO_HEADERS) $(QUIET_CC)$(CC) $(CFLAGS) $(LDFLAGS) -o x86info $(X86INFO_OBJS) \ - $(LIBPCI) + `pkg-config --libs libpci` $(LIBPCI) DEPDIR= .deps -include $(X86INFO_SRC:%.c=$(DEPDIR)/%.d)