openbsd-ports/net/silc-client/patches/patch-configure_in
2005-04-07 15:38:17 +00:00

45 lines
1.1 KiB
Plaintext

$OpenBSD: patch-configure_in,v 1.7 2005/04/07 15:38:17 brad Exp $
--- configure.in.orig Wed Apr 6 09:02:28 2005
+++ configure.in Wed Apr 6 11:32:28 2005
@@ -39,7 +39,6 @@ AM_INIT_AUTOMAKE(silc-client, 1.0.2)
AC_PREREQ(2.52)
AC_CONFIG_HEADERS(includes/silcdefs.h)
-CFLAGS=
AC_PROG_CC
AC_C_INLINE
AC_C_CONST
@@ -295,31 +294,7 @@ AC_DEFUN([SILC_ADD_CFLAGS],
unset tmp_CFLAGS
])
-if test "$GCC"; then
- # GCC specific options
- if test "x$summary_debug" = "xyes"; then
- SILC_ADD_CFLAGS(-g -O)
- else
- SILC_ADD_CFLAGS(-g -O2)
- fi
- SILC_ADD_CFLAGS(-Wall -finline-functions)
-else
- # Other compilers
- case "$target" in
- alpha*-dec-osf*)
- SILC_ADD_CFLAGS(-g3 -O2, SILC_ADD_CFLAGS(-g3 -O, SILC_ADD_CFLAGS(-O)))
- ;;
- *)
- SILC_ADD_CFLAGS(-g)
- SILC_ADD_CFLAGS(-O2, SILC_ADD_CFLAGS(-O))
- ;;
- esac
-
- # Intel C++ Compiler needs -restrict
- if test "x$CC" = "xicc"; then
- SILC_ADD_CFLAGS(-restrict)
- fi
-fi
+SILC_ADD_CFLAGS(-Wall -finline-functions)
#
# Workaround a bug in GCC 2.x which causes memory exhaustion