mirror of
https://github.com/znc/znc.git
synced 2026-08-08 01:43:03 +02:00
Add -Woverloaded-virtual to CXXFLAGS and use tabs for indentation.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@815 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -2441,17 +2441,17 @@ appendLD () {
|
||||
}
|
||||
|
||||
case "${host_os}" in
|
||||
freebsd*)
|
||||
appendInc -I/usr/local/include
|
||||
appendLib -L/usr/local/lib -lcompat
|
||||
appendCXX -D__GNU_LIBRARY__
|
||||
freebsd*)
|
||||
appendInc -I/usr/local/include
|
||||
appendLib -L/usr/local/lib -lcompat
|
||||
appendCXX -D__GNU_LIBRARY__
|
||||
;;
|
||||
solaris*)
|
||||
appendLib -lsocket -lnsl
|
||||
ISSUN=1
|
||||
solaris*)
|
||||
appendLib -lsocket -lnsl
|
||||
ISSUN=1
|
||||
;;
|
||||
cygwin)
|
||||
ISCYGWIN=1
|
||||
cygwin)
|
||||
ISCYGWIN=1
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -2506,6 +2506,10 @@ else
|
||||
appendCXX -Wall -s -O2 -fomit-frame-pointer
|
||||
fi
|
||||
|
||||
if test "x$GXX" = "xyes"; then
|
||||
appendCXX -Woverloaded-virtual
|
||||
fi
|
||||
|
||||
if test "$IPV6" != "no"; then
|
||||
appendCXX -DHAVE_IPV6
|
||||
fi
|
||||
|
||||
+15
-11
@@ -40,17 +40,17 @@ appendLD () {
|
||||
}
|
||||
|
||||
case "${host_os}" in
|
||||
freebsd*)
|
||||
appendInc -I/usr/local/include
|
||||
appendLib -L/usr/local/lib -lcompat
|
||||
appendCXX -D__GNU_LIBRARY__
|
||||
freebsd*)
|
||||
appendInc -I/usr/local/include
|
||||
appendLib -L/usr/local/lib -lcompat
|
||||
appendCXX -D__GNU_LIBRARY__
|
||||
;;
|
||||
solaris*)
|
||||
appendLib -lsocket -lnsl
|
||||
ISSUN=1
|
||||
solaris*)
|
||||
appendLib -lsocket -lnsl
|
||||
ISSUN=1
|
||||
;;
|
||||
cygwin)
|
||||
ISCYGWIN=1
|
||||
cygwin)
|
||||
ISCYGWIN=1
|
||||
;;
|
||||
esac
|
||||
|
||||
@@ -93,6 +93,10 @@ if test "$IPV6" != "no"; then
|
||||
appendCXX -DHAVE_IPV6
|
||||
fi
|
||||
|
||||
if test "x$GXX" = "xyes"; then
|
||||
appendCXX -Woverloaded-virtual
|
||||
fi
|
||||
|
||||
AC_CHECK_LIB( gnugetopt, getopt_long,)
|
||||
AC_CHECK_FUNCS( stat lstat chmod open, , AC_ERROR([Missing Required libc feature]))
|
||||
if test "$MODULES" = "yes"; then
|
||||
@@ -151,8 +155,8 @@ if test "$MODULES" = "yes"; then
|
||||
if test -n "$PERL"; then
|
||||
echo "$PERL"
|
||||
AC_CHECK_LIB(perl, perl_alloc,unset NOPERL,
|
||||
AC_ERROR([Could not find liberl. Try --disable-perl]),
|
||||
[`$PERL -MExtUtils::Embed -e ccopts -e ldopts`])
|
||||
AC_ERROR([Could not find liberl. Try --disable-perl]),
|
||||
[`$PERL -MExtUtils::Embed -e ccopts -e ldopts`])
|
||||
else
|
||||
echo "no"
|
||||
unset PERL
|
||||
|
||||
Reference in New Issue
Block a user