From: Hannu Nyman Date: Sun, 11 May 2025 06:26:03 +0000 (+0300) Subject: libpng: Revert "libpng: add symlink to debug library" as unnecessary X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=01b5fcc9eec5de6e22cf67bc38f8e2b9de0a1625;p=feed%2Fpackages.git libpng: Revert "libpng: add symlink to debug library" as unnecessary This reverts commit 5313dd9be from PR #25324 , related to #25323 and https://github.com/openwrt/openwrt/pull/16899 The additional symlink libpng16.so -> libpng16d.so is now unnecessary as OpenWrt main repo PR https://github.com/openwrt/openwrt/pull/18709 commit https://github.com/openwrt/openwrt/commit/703e7d2d5b58e68528cb5fadfc1185bd3904b3d9 changed the cmake build type from 'Debug' to 'RelWithDebInfo', which causes libpng .so to be compiled with the normal name libpng16.so (instead of the debug-styled libpng16d.so). Signed-off-by: Hannu Nyman --- diff --git a/libs/libpng/Makefile b/libs/libpng/Makefile index 726f32fe20..748752faac 100644 --- a/libs/libpng/Makefile +++ b/libs/libpng/Makefile @@ -46,9 +46,6 @@ CMAKE_OPTIONS += \ define Build/InstallDev $(call Build/InstallDev/cmake,$(1)) -ifdef CONFIG_DEBUG - $(LN) libpng16d.so $(1)/usr/lib/libpng16.so -endif $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(1)/usr/bin/libpng{,16}-config $(SED) '/^includedir=/s|/usr|$$$${prefix}|' $(1)/usr/bin/libpng{,16}-config $(SED) '/^libdir=/s|/usr|$$$${prefix}|' $(1)/usr/bin/libpng{,16}-config @@ -62,10 +59,7 @@ endef define Package/libpng/install $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpng16$(if $(CONFIG_DEBUG),d).so* $(1)/usr/lib/ -ifdef CONFIG_DEBUG - $(LN) libpng16d.so $(1)/usr/lib/libpng16.so -endif + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpng16.so* $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpng.so $(1)/usr/lib/ endef