- $(SED) 's,$(TARGET_LDFLAGS),,g' $(1)/usr/lib/pkgconfig/{openssl,libcrypto,libssl}.pc
-endef
-
-define Build/UninstallDev
- rm -rf $(1)/usr/include/openssl \
- $(1)/usr/lib/lib{crypto,ssl}.{a,so*} \
- $(1)/usr/lib/pkgconfig/{openssl,libcrypto,libssl}.pc
+ [ -n "$(TARGET_LDFLAGS)" ] && $(SED) 's#$(TARGET_LDFLAGS)##g' $(1)/usr/lib/pkgconfig/{openssl,libcrypto,libssl}.pc || true