From 15c84adca94bfe4a89ece5c04f06a884cf508ebb Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 17 Jan 2011 21:55:49 +0100 Subject: fix packages to be compile with stack protector - libtool do not pass -fstack-protector while linking, but this is required to successfully link libraries or executables with SSP - pass LDFLAGS for non-libtool packages --- package/apr/patches/patch-build_ltmain_sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/apr/patches/patch-build_ltmain_sh (limited to 'package/apr') diff --git a/package/apr/patches/patch-build_ltmain_sh b/package/apr/patches/patch-build_ltmain_sh new file mode 100644 index 000000000..0ce8441f6 --- /dev/null +++ b/package/apr/patches/patch-build_ltmain_sh @@ -0,0 +1,11 @@ +--- apr-1.4.2.orig/build/ltmain.sh 2010-01-21 08:59:41.000000000 +0100 ++++ apr-1.4.2/build/ltmain.sh 2011-01-14 11:41:48.000000000 +0100 +@@ -4765,7 +4765,7 @@ func_mode_link () + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC + # @file GCC response files + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ +- -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) ++ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + func_append compile_command " $arg" -- cgit v1.2.3 From 3d45df344602687c8983f5fb609721aa8ca2469f Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 18 Jan 2011 15:32:55 +0100 Subject: rework PKG_FLAVOURS. Subpackages can have flavours, so always add PKG_NAME to PKG_FLAVOURS variable. ala PKG_FLAVOURS_LIBNCURSES. Bug reported by Phil Sutter. --- package/apr/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'package/apr') diff --git a/package/apr/Makefile b/package/apr/Makefile index 096981833..2b6c05305 100644 --- a/package/apr/Makefile +++ b/package/apr/Makefile @@ -13,7 +13,7 @@ PKG_DEPENDS:= libpthread PKG_URL:= http://apr.apache.org/ PKG_SITES:= http://gd.tuwien.ac.at/infosys/servers/http/apache/dist/${PKG_NAME}/ -PKG_FLAVOURS:= WITH_IPV6 +PKG_FLAVOURS_APR:= WITH_IPV6 PKGFD_WITH_IPV6:= enable IPv6 support include ${TOPDIR}/mk/package.mk @@ -28,7 +28,6 @@ CONFIGURE_ENV+= ac_cv_file__dev_zero=yes CONFIGURE_ENV+= apr_cv_process_shared_works=no CONFIGURE_ENV+= ac_cv_lib_nsl_gethostbyname=no CONFIGURE_ENV+= apr_cv_tcp_nodelay_with_cork=no - CONFIGURE_ARGS+= --with-devrandom=/dev/urandom \ --enable-threads -- cgit v1.2.3