diff options
| author | Yousong Zhou <yszhou4tech@gmail.com> | 2019-06-20 13:25:59 +0000 |
|---|---|---|
| committer | Yousong Zhou <yszhou4tech@gmail.com> | 2019-06-21 09:52:32 +0800 |
| commit | 9ac5ac81ab2241b7c13c01e8801e0e7d95ebb4eb (patch) | |
| tree | 8e917b35332bcae8517d6291258d80f0d44d4b46 /libs/libuhttpd | |
| parent | 274b111782c1d7650ae244a16e141e39d339af32 (diff) | |
treewide: avoid deref symlinks when installing .so
This change is inspired by commit openwrt/openwrt@38b22b1e ("nghttp2:
deduplicate files in libnghttp2")
The packages in this commit are identified with the following command
grep -rin -E 'INSTALL_(DATA|BIN)' | grep -F '.so' | grep -F '*'
Some of them do not have symlinks and are not affected, but the change
is still applied for consideration of best practices just in case
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Diffstat (limited to 'libs/libuhttpd')
| -rw-r--r-- | libs/libuhttpd/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/libuhttpd/Makefile b/libs/libuhttpd/Makefile index 1d719b980..12b1d7dc4 100644 --- a/libs/libuhttpd/Makefile +++ b/libs/libuhttpd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libuhttpd PKG_VERSION:=2.2.2 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_PROTO:=git PKG_SOURCE_VERSION:=v$(PKG_VERSION) @@ -71,8 +71,8 @@ endif define Package/libuhttpd/default/install $(INSTALL_DIR) $(1)/usr/lib/ $(1)/usr/lib/lua/ - $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libuhttpd.so* $(1)/usr/lib/ - $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/lua/uhttpd.so* $(1)/usr/lib/lua/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuhttpd.so* $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/lua/uhttpd.so* $(1)/usr/lib/lua/ endef Package/libuhttpd-nossl/install = $(Package/libuhttpd/default/install) |
