summaryrefslogtreecommitdiffstats
path: root/Configurations
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2016-05-01 13:35:31 +0200
committerAndy Polyakov <appro@openssl.org>2016-05-02 12:49:57 +0200
commitcba792a1e941788cba7dc700a2ef59420e7f2522 (patch)
treebd37782f5da9dfd4b6fd203a635204ff93496b39 /Configurations
parentb1a07c38540105077878ad80a6a87c96fdbc18f1 (diff)
Android build fixes.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'Configurations')
-rw-r--r--Configurations/10-main.conf16
-rw-r--r--Configurations/unix-Makefile.tmpl2
2 files changed, 6 insertions, 12 deletions
diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf
index 9d3f3ffd4e..601dbe5e15 100644
--- a/Configurations/10-main.conf
+++ b/Configurations/10-main.conf
@@ -896,17 +896,14 @@ sub vms_info {
# Special note about unconditional -fPIC and -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 if -pie. Older toolchains, e.g. r4, appear to handle it
+ # concern is -pie. Older toolchains, e.g. r4, appear to handle it
# and binaries turn mostly functional. "Mostly" means that oldest
# Androids, such as Froyo, fail to handle executable, but newer
# systems are perfectly capable of executing binaries targeting
# Froyo. Keep in mind that in the nutshell Android builds are
# about JNI, i.e. shared libraries, not applications.
- cflags => picker(default => "-mandroid -fPIC --sysroot=\$(CROSS_SYSROOT) -Wa,--noexecstack -Wall",
- debug => "-O0 -g",
- release => "-O3"),
- lflags => "-pie",
- shared_cflag => "",
+ cflags => add(picker(default => "-mandroid -fPIC --sysroot=\$(CROSS_SYSROOT) -Wa,--noexecstack")),
+ bin_cflags => "-pie",
},
"android-x86" => {
inherit_from => [ "android", asm("x86_asm") ],
@@ -945,11 +942,8 @@ sub vms_info {
"android64" => {
inherit_from => [ "linux-generic64" ],
- cflags => picker(default => "-mandroid -fPIC --sysroot=\$(CROSS_SYSROOT) -Wa,--noexecstack -Wall",
- debug => "-O0 -g",
- release => "-O3"),
- lflags => "-pie",
- shared_cflag => "",
+ cflags => add(picker(default => "-mandroid -fPIC --sysroot=\$(CROSS_SYSROOT) -Wa,--noexecstack")),
+ bin_cflags => "-pie",
},
"android64-aarch64" => {
inherit_from => [ "android64", asm("aarch64_asm") ],
diff --git a/Configurations/unix-Makefile.tmpl b/Configurations/unix-Makefile.tmpl
index 164b533f22..974a978fb3 100644
--- a/Configurations/unix-Makefile.tmpl
+++ b/Configurations/unix-Makefile.tmpl
@@ -172,7 +172,7 @@ LIB_LDFLAGS={- $target{shared_ldflag}." ".$config{shared_ldflag}
RCFLAGS={- $target{shared_rcflag} -}
DSO_CFLAGS={- $target{shared_cflag} || "" -}
DSO_LDFLAGS=$(LIB_LDFLAGS)
-BIN_CFLAGS={- "" -}
+BIN_CFLAGS={- $target{bin_cflags} -}
PERL={- $config{perl} -}