From 4b348df3dd14b1f2ac56838252b9477f00d366d9 Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 8 Mar 2014 00:56:50 +0000 Subject: [PATCH] libowfat: fix build libowfat build was failing due to the CFLAGS being overriden in the Makefile which will make all the preliminary tests to fail. Signed-off-by: Florian Fainelli git-svn-id: svn://svn.openwrt.org/openwrt/packages@39805 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- libs/libowfat/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libs/libowfat/Makefile b/libs/libowfat/Makefile index 23a886920..2741f4930 100644 --- a/libs/libowfat/Makefile +++ b/libs/libowfat/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2010 OpenWrt.org +# Copyright (C) 2010-2014 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -11,7 +11,7 @@ LOWFAT_VERSION=0.28 PKG_NAME:=libowfat PKG_VERSION:=$(LOWFAT_VERSION) -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://dl.fefe.de @@ -34,10 +34,9 @@ endef TARGET_CFLAGS += $(FPIC) LOWFAT_MAKEOPTS = $(TARGET_CONFIGURE_OPTS) \ - COPTS="$(TARGET_CFLAGS)" \ + CFLAGS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR) -I$(STAGING_DIR)/usr/include" \ DEBUG="$(DEBUG)" \ VERSION="$(LOWFAT_VERSION)" \ - CPPFLAGS="-I$(PKG_BUILD_DIR) -I$(STAGING_DIR)/usr/include" \ OS="Linux" # work around a nasty gcc bug