2 # Copyright (C) 2008-2013 OpenWrt.org
3 # Copyright (C) 2017-2019 Yousong Zhou <yszhou4tech@gmail.com>
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SAVANNAH
/$(PKG_NAME
)
17 PKG_HASH
:=4a6aec666991fb45d0889c44aede8ad6eb108071c3554fcdff671f9c94794976
19 PKG_MAINTAINER
:=Yousong Zhou
<yszhou4tech@gmail.com
>
21 PKG_LICENSE_FILES
:=LICENSE
22 PKG_CPE_ID
:=cpe
:/a
:libunwind_project
:libunwind
28 include $(INCLUDE_DIR
)/package.mk
30 define Package
/libunwind
33 TITLE
:=The libunwind project
34 URL
:=http
://www.nongnu.org
/libunwind
/
35 DEPENDS
:=@
((mips||mipsel||mips64||powerpc64||x86_64||arm||aarch64
)||
(USE_GLIBC
&&(powerpc||i386
))) +zlib
39 define Package
/libunwind
/description
40 Libunwind defines a portable and efficient C programming interface
(API
) to determine the call-chain of a program.
44 --disable-documentation \
46 --disable-minidebuginfo
48 TARGET_LDFLAGS
+= $(if
$(CONFIG_USE_MUSL
),-lssp_nonshared
)
50 define Package
/libunwind
/install
51 $(INSTALL_DIR
) $(1)/usr
/lib
52 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libunwin
*.so.
* $(1)/usr
/lib
/
55 define Build
/InstallDev
56 $(INSTALL_DIR
) $(1)/usr
/include $(1)/usr
/lib
/pkgconfig
57 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/*.h
$(1)/usr
/include
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libunwin
*.so
* $(1)/usr
/lib
59 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* $(1)/usr
/lib
/pkgconfig
/
62 $(eval
$(call BuildPackage
,libunwind
))