Thomas Heijligen has uploaded this change for review.

View Change

Makefile: remove CPPFLAGS and LDFLAGS to default directories

All CPPFLAGS and LDFLAGS for dependencies are handled by pkg-config

Change-Id: Ib7c11a0c8a7918562256480c4be0c95355f981c5
Signed-off-by: Thomas Heijligen <>
M Makefile
1 file changed, 1 insertion(+), 6 deletions(-)

git pull ssh:// refs/changes/26/61526/1
diff --git a/Makefile b/Makefile
index 37af20b..d746f5a 100644
--- a/Makefile
+++ b/Makefile
@@ -243,7 +243,7 @@
HAS_LINUX_SPI := $(call c_compile_test, Makefile.d/linux_spi_test.c)
HAS_LINUX_I2C := $(call c_compile_test, Makefile.d/linux_i2c_test.c)

-ifeq ($(TARGET_OS), $(filter $(TARGET_OS), FreeBSD OpenBSD DragonFlyBSD))
+ifeq ($(TARGET_OS), $(filter $(TARGET_OS), DragonFlyBSD))
override CPPFLAGS += -I/usr/local/include
override LDFLAGS += -L/usr/local/lib
@@ -253,11 +253,6 @@
override LDFLAGS += -L/opt/local/lib -L/usr/local/lib

-ifeq ($(TARGET_OS), NetBSD)
-override CPPFLAGS += -I/usr/pkg/include
-override LDFLAGS += -L/usr/pkg/lib
ifeq ($(TARGET_OS), DOS)
# DJGPP has odd uint*_t definitions which cause lots of format string warnings.

To view, visit change 61526. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ib7c11a0c8a7918562256480c4be0c95355f981c5
Gerrit-Change-Number: 61526
Gerrit-PatchSet: 1
Gerrit-Owner: Thomas Heijligen <>
Gerrit-MessageType: newchange