opnsense-ports/sysutils/x86info/files/patch-Makefile
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01: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