libunwind: disable building with ssp
[openwrt/openwrt.git] / package / libs / libunwind / Makefile
1 #
2 # Copyright (C) 2008-2013 OpenWrt.org
3 # Copyright (C) 2017 Yousong Zhou <yszhou4tech@gmail.com>
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libunwind
12 PKG_VERSION:=1.2.1
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SAVANNAH/$(PKG_NAME)
17 PKG_HASH:=3f3ecb90e28cbe53fba7a4a27ccce7aad188d3210bb1964a923a731a27a75acb
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 PKG_LICENSE:=X11
22 PKG_LICENSE_FILES:=LICENSE
23
24 PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
25
26 PKG_SSP:=0
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/libunwind
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=The libunwind project
33 URL:=http://www.nongnu.org/libunwind/
34 DEPENDS:=@(mips||mipsel||powerpc||i386||x86_64)
35 endef
36
37 define Package/libunwind/description
38 Libunwind defines a portable and efficient C programming interface (API) to determine the call-chain of a program.
39 endef
40
41 CONFIGURE_ARGS += \
42 --disable-documentation \
43 --enable-minidebuginfo=no \
44
45
46 define Package/libunwind/install
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunwin*.so* $(1)/usr/lib/
49 endef
50
51 define Build/InstallDev
52 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib/pkgconfig
53 $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libunwin*.so* $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/
56 endef
57
58 $(eval $(call BuildPackage,libunwind))