From f5506ed32da1417beb03e0a58ac2bcf1e27e2600 Mon Sep 17 00:00:00 2001 From: florian Date: Tue, 20 May 2014 04:51:37 +0000 Subject: [PATCH] libftdi: fix build for x86_64 target MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas Signed-off-by: Florian Fainelli git-svn-id: svn://svn.openwrt.org/openwrt/packages@40792 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- libs/libftdi/Makefile | 4 ++-- libs/libftdi/patches/100-fix-x86_64-build.patch | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 libs/libftdi/patches/100-fix-x86_64-build.patch diff --git a/libs/libftdi/Makefile b/libs/libftdi/Makefile index 819c03672..7bf5b2b6f 100644 --- a/libs/libftdi/Makefile +++ b/libs/libftdi/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2011 OpenWrt.org +# Copyright (C) 2011-2014 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libftdi PKG_VERSION:=0.19 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.intra2net.com/en/developer/libftdi/download/ diff --git a/libs/libftdi/patches/100-fix-x86_64-build.patch b/libs/libftdi/patches/100-fix-x86_64-build.patch new file mode 100644 index 000000000..9a9da9a6c --- /dev/null +++ b/libs/libftdi/patches/100-fix-x86_64-build.patch @@ -0,0 +1,11 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -43,7 +43,7 @@ IF(CMAKE_SIZEOF_VOID_P EQUAL 4) + SET(LIB_SUFFIX "") + SET(PACK_ARCH "") + ELSE(CMAKE_SIZEOF_VOID_P EQUAL 8) +- SET(LIB_SUFFIX 64) ++ SET(LIB_SUFFIX "") + SET(PACK_ARCH .x86_64) + endif(CMAKE_SIZEOF_VOID_P EQUAL 4) +