freebsd-ports/sysutils/x86info/files/patch-Makefile
Alexey Dokuchaev 21f0b83c41 - Cleanup MASTER_SITES per distilator
- Adjust COMMENT, sort knobs in a more natural order
- Incorporate post-patch sed(1) patching into existing patch-Makefile
- Reindent Makefile header while I am here
2012-02-28 17:50:17 +00:00

22 lines
703 B
Text

--- Makefile.orig 2011-09-15 15:43:52.000000000 -0700
+++ Makefile 2011-09-15 15:44:01.000000000 -0700
@@ -1,8 +1,8 @@
VERSION=1.30
-CFLAGS = -g -O2 -Werror -Wall -Wshadow -Wextra -Wmissing-declarations -Wdeclaration-after-statement -Wredundant-decls
+CFLAGS += -Wall -Wshadow -Wextra -Wmissing-declarations -Wdeclaration-after-statement -Wredundant-decls `pkg-config --cflags libpci`
LDFLAGS = -Wl,-z,relro,-z,now
-CC = gcc
+CC ?= gcc
SHELL = /bin/sh
@@ -91,7 +91,7 @@
X86INFO_OBJS = $(X86INFO_SRC:%.c=%.o)
x86info: $(X86INFO_OBJS)
- $(CC) $(CFLAGS) $(LDFLAGS) -o x86info $(X86INFO_OBJS) -lpci
+ $(CC) $(CFLAGS) $(LDFLAGS) -o x86info $(X86INFO_OBJS) `pkg-config --libs libpci` -lpci