patch-configure_ac 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. --- stunnel-5.01.orig/configure.ac 2014-03-09 23:14:33.000000000 +0100
  2. +++ stunnel-5.01/configure.ac 2014-05-28 11:55:04.000000000 +0200
  3. @@ -44,31 +44,6 @@ AC_LINK_IFELSE([AC_LANG_SOURCE([int main
  4. ])
  5. CFLAGS="$valid_CFLAGS"; LDFLAGS="$valid_LDFLAGS"
  6. -AC_MSG_CHECKING([whether $CC accepts -fstack-protector])
  7. -valid_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS -fstack-protector"
  8. -valid_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS -fstack-protector"
  9. -AC_LINK_IFELSE([AC_LANG_SOURCE([int main() {return 0;}])],
  10. - [
  11. - AC_MSG_RESULT([yes])
  12. - AC_SUBST([stunnel_CFLAGS], ["$stunnel_CFLAGS -fstack-protector"])
  13. - AC_SUBST([stunnel_LDFLAGF], ["$stunnel_LDFLAGF -fstack-protector"])
  14. - ], [
  15. - AC_MSG_RESULT([no])
  16. - ])
  17. -CFLAGS="$valid_CFLAGS"; LDFLAGS="$valid_LDFLAGS"
  18. -
  19. -AC_MSG_CHECKING([whether $CC accepts -pie])
  20. -valid_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS -fPIE"
  21. -valid_LDFLAGS="$LDFLAGS"; LDFLAGS="$LDFLAGS -pie -fPIE"
  22. -AC_LINK_IFELSE([AC_LANG_SOURCE([int main() {return 0;}])],
  23. - [
  24. - AC_MSG_RESULT([yes])
  25. - AC_SUBST([stunnel_CFLAGS], ["$stunnel_CFLAGS -fPIE"])
  26. - AC_SUBST([stunnel_LDFLAGF], ["$stunnel_LDFLAGF -pie -fPIE"])
  27. - ], [
  28. - AC_MSG_RESULT([no])
  29. - ])
  30. -CFLAGS="$valid_CFLAGS"; LDFLAGS="$valid_LDFLAGS"
  31. AC_MSG_CHECKING([whether $CC accepts -Wall])
  32. valid_CFLAGS="$CFLAGS"; CFLAGS="$CFLAGS -Wall"