openssl: drop libdl from pc file
Fixes: http://autobuild.buildroot.net/results/2a2/2a274e2dbffd268a391b0e8a15dae5a759b870a1/ [Thomas: move registration of the hook inside the condition.] Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
14c1641c1a
commit
c130c5d463
@ -115,6 +115,14 @@ define OPENSSL_INSTALL_TARGET_CMDS
|
|||||||
rm -f $(TARGET_DIR)/usr/bin/c_rehash
|
rm -f $(TARGET_DIR)/usr/bin/c_rehash
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
# libdl has no business in a static build
|
||||||
|
ifeq ($(BR2_PREFER_STATIC_LIB),y)
|
||||||
|
define OPENSSL_FIXUP_STATIC_PKGCONFIG
|
||||||
|
$(SED) 's/-ldl//' $(STAGING_DIR)/usr/lib/pkgconfig/openssl.pc
|
||||||
|
endef
|
||||||
|
OPENSSL_POST_INSTALL_STAGING_HOOKS += OPENSSL_FIXUP_STATIC_PKGCONFIG
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq ($(BR2_PREFER_STATIC_LIB),y)
|
ifneq ($(BR2_PREFER_STATIC_LIB),y)
|
||||||
# libraries gets installed read only, so strip fails
|
# libraries gets installed read only, so strip fails
|
||||||
define OPENSSL_INSTALL_FIXUPS_SHARED
|
define OPENSSL_INSTALL_FIXUPS_SHARED
|
||||||
|
Loading…
Reference in New Issue
Block a user