Search
j0ke.net Open Build Service
>
Projects
>
server:mail
>
dovecot12
> dovecot-1.2-sieve-0.1.17_pie.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File dovecot-1.2-sieve-0.1.17_pie.patch of Package dovecot12
Index: dovecot-1.2-sieve-0.1.17/configure.in =================================================================== --- dovecot-1.2-sieve-0.1.17.orig/configure.in +++ dovecot-1.2-sieve-0.1.17/configure.in @@ -20,6 +20,37 @@ AC_PROG_CC AC_PROG_CPP AC_PROG_LIBTOOL +AC_ARG_ENABLE(pie, +[ --enable-pie Enable PIE support (default)], + if test x$enableval = xno; then + want_pie=no + else + want_pie=yes + fi, + want_pie=no) + +dnl ** +dnl ** PIE check +dnl ** + +if test $want_pie = yes; then + AC_MSG_CHECKING([if we can use PIE]) + # try to compile something with pie + old_cflags=$CFLAGS + CFLAGS="-pie -fPIE -DPIE -Werror" + AC_TRY_LINK([],,[ + LIBS="$LIBS -pie" + # enforce -fPIC so all objects are compiled with it + CFLAGS="$old_cflags -fPIC -DPIC" + ac_want_pie="yes" + ], [ + # restore old CFLAGS + CFLAGS="$old_cflags" + ac_want_pie="no" + ]) + AC_MSG_RESULT($ac_want_pie) +fi + AC_ARG_WITH(dovecot, [AC_HELP_STRING([--with-dovecot=DIR], [Dovecot base directory [../dovecot]])], dovecotdir="$withval",