avrusbboot: link using our CFLAGS

Signed-off-by: Florian Fainelli <florian@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@39835 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2014-03-08 00:58:04 +00:00
parent acd699849c
commit 380f486594

View File

@ -1,5 +1,5 @@
# #
# Copyright (C) 2008-2011 OpenWrt.org # Copyright (C) 2008-2014 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=avrusbboot PKG_NAME:=avrusbboot
PKG_VERSION:=2006-06-25 PKG_VERSION:=2006-06-25
PKG_RELEASE:=3 PKG_RELEASE:=4
PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.fischl.de/avrusbboot/ PKG_SOURCE_URL:=http://www.fischl.de/avrusbboot/
@ -42,8 +42,8 @@ endef
define Build/Compile define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/software \ $(MAKE) -C $(PKG_BUILD_DIR)/software \
CXX="$(TARGET_CXX)" \ CXX="$(TARGET_CXX)" \
CPPFLAGS="$(TARGET_CPPFLAGS) -fno-rtti" \ CPPFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -fno-rtti" \
LFLAGS="$(TARGET_LDFLAGS) -lusb" \ LFLAGS="$(TARGET_LDFLAGS) $(TARGET_CFLAGS) -lusb" \
all all
endef endef