From: Florian Fainelli Date: Tue, 20 May 2014 04:51:37 +0000 (+0000) Subject: libftdi: fix build for x86_64 target X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=60ed07e211349ca65fe37bd53e31c6b59e7c390e;p=openwrt%2Fsvn-archive%2Farchive.git libftdi: fix build for x86_64 target Signed-off-by: Álvaro Fernández Rojas Signed-off-by: Florian Fainelli SVN-Revision: 40792 --- diff --git a/libs/libftdi/Makefile b/libs/libftdi/Makefile index 819c03672b..7bf5b2b6f4 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 0000000000..9a9da9a6cf --- /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) +