diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-04-14 21:13:08 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-04-14 21:13:08 +0200 |
commit | bf8ea1e9e9233a5823a6697a76fc657863909332 (patch) | |
tree | 9b81cff8718c742ed8b888107f18586d8a111724 | |
parent | 472a14d3728295828bddc8600c95b51c27508443 (diff) |
handle ssp better
-rw-r--r-- | package/mksh/patches/patch-Build_sh | 10 | ||||
-rw-r--r-- | package/mksh/patches/patch-dot_mkshrc | 4 | ||||
-rw-r--r-- | package/openssh/Makefile | 6 |
3 files changed, 18 insertions, 2 deletions
diff --git a/package/mksh/patches/patch-Build_sh b/package/mksh/patches/patch-Build_sh new file mode 100644 index 000000000..3bd7547b7 --- /dev/null +++ b/package/mksh/patches/patch-Build_sh @@ -0,0 +1,10 @@ +--- mksh.orig/Build.sh 2011-04-14 19:46:02.037662289 +0200 ++++ mksh/Build.sh 2011-04-14 19:45:49.357672498 +0200 +@@ -816,7 +816,6 @@ if test $ct = gcc; then + # The following tests run with -Werror (gcc only) if possible + NOWARN=$DOWARN; phase=u + ac_flags 1 fnostrictaliasing -fno-strict-aliasing +- ac_flags 1 fstackprotectorall -fstack-protector-all + ac_flags 1 fwrapv -fwrapv + test $cm = combine && ac_flags 0 combine \ + '-fwhole-program --combine' \ diff --git a/package/mksh/patches/patch-dot_mkshrc b/package/mksh/patches/patch-dot_mkshrc index 2b215b93e..03e0b73ba 100644 --- a/package/mksh/patches/patch-dot_mkshrc +++ b/package/mksh/patches/patch-dot_mkshrc @@ -1,5 +1,5 @@ ---- mksh/dot.mkshrc~ Thu Feb 25 20:48:10 2010 -+++ mksh/dot.mkshrc Sun Feb 28 18:05:10 2010 +--- mksh.orig/dot.mkshrc 2011-04-14 19:46:02.037662289 +0200 ++++ mksh/dot.mkshrc 2011-04-14 10:11:18.977672397 +0200 @@ -21,7 +21,7 @@ #- # ${ENV:-~/.mkshrc}: mksh initialisation file for interactive shells diff --git a/package/openssh/Makefile b/package/openssh/Makefile index 2023a4bbb..64a71f7d8 100644 --- a/package/openssh/Makefile +++ b/package/openssh/Makefile @@ -49,6 +49,12 @@ ifeq ($(ADK_PACKAGE_OPENSSH_WITH_HEIMDAL),y) CONFIGURE_ARGS+= --with-kerberos5="${STAGING_TARGET_DIR}/usr" endif +ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y) +CONFIGURE_ARGS+= --with-stackprotect +else +CONFIGURE_ARGS+= --without-stackprotect +endif + CONFIGURE_ENV+= LD='${TARGET_CC}' \ ac_cv_func_setlogin=no \ ac_cv_lib_nsl_yp_match=no |