[Buildroot] [PATCH] openswan: disable for static builds
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Wed Mar 4 21:46:11 UTC 2015
Dear Vicente Olivert Riera,
On Wed, 4 Mar 2015 17:28:53 +0000, Vicente Olivert Riera wrote:
> openswan is built with -fPIE which produces shared objects, and shared
> objects need "/lib/ld.so" which won't be present on a statically built
> target. So, building openswan with -static -fPIE is invalid and will
> fail with an error like this one:
Did you see that -fPIE is in fact explicitly passed by Buildroot in
openswan.mk ? So most likely, all what you need to do is to make sure
to pass -fPIE only if BR2_STATIC_LIBS is disabled.
I'll mark this patch as Changes Requested in patchwork. Please submit a
new version that doesn't pass -fPIE when not needed.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list