Test OpenSSL -pie changes

See https://github.com/openssl/openssl/issues/11237
This commit is contained in:
Jeffrey Walton 2020-03-03 16:25:25 -05:00
parent 114d650d32
commit a53c452f25
No known key found for this signature in database
GPG key ID: B36AB348921B1838

View file

@ -9,8 +9,6 @@
my $android_ndk = {};
my %triplet = (
arm => "arm-linux-androideabi",
armeabi => "arm-linux-androideabi",
armv7a => "arm-linux-androideabi",
arm64 => "aarch64-linux-android",
x86 => "i686-linux-android",
x86_64 => "x86_64-linux-android"
@ -150,15 +148,12 @@ my %targets = (
"android" => {
inherit_from => [ "linux-generic32" ],
template => 1,
################################################################
# Special note about -pie. The underlying reason is that
# Lollipop refuses to run non-PIE. But what about older systems
# and NDKs? -fPIC was never problem, so the only concern is -pie.
cflags => add(sub { android_ndk()->{cflags} }),
cppflags => add(sub { android_ndk()->{cppflags} }),
cxxflags => add(sub { android_ndk()->{cflags} }),
bn_ops => sub { android_ndk()->{bn_ops} },
bin_cflags => "-pie",
bin_cflags => "-fPIE",
bin_lflags => "-pie",
enable => [ ],
},
"android-arm" => {