[Buildroot] [PATCH] uboot-tools: fix static linking with OpenSSL

Peter Korsgaard peter at korsgaard.com
Wed May 13 08:02:07 UTC 2015


>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni at free-electrons.com> writes:

 > Had a patch to U-Boot to use pkg-config to get the OpenSSL link flags

s/Had/Add/

> when pkg-config is available. This allows to make sure that static
 > linking works properly. The patch requires adding $(TARGET_MAKE_ENV)
 > so that the Buildroot provided pkg-config is used instead of the host
 > one.

 > The U-Boot patch has been submitted upstream.

Thanks!

 > Fixes:

 >   http://autobuild.buildroot.org/results/a9f/a9f316cd076a74b8730ce4cdcdb8176da4ed9eb3/

 > Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>

> + # MXSImage needs LibSSL
 > + ifneq ($(CONFIG_MX23)$(CONFIG_MX28)$(CONFIG_FIT_SIGNATURE),)
 > +-HOSTLOADLIBES_mkimage += -lssl -lcrypto
 > ++HOSTLOADLIBES_mkimage += \
 > ++	$(shell pkg-config --libs libssl 2> /dev/null || echo "-lssl -lcrypto")
 > + endif

This only works because we have a pkg-config wrapper adding --static to
the real pkg-config. For people directly using pkg-config this won't fix
anything.

But yeah, in the context of Buildroot it does, so committed -
Thanks.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list