Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
542aa8de
Commit
542aa8de
authored
Nov 12, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correctly pass -Wall and -Werror dependending on whether we are in a release or not
parent
9c86aafb
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
5 deletions
+19
-5
common.mk
common.mk
+1
-2
configure.ac
configure.ac
+16
-1
gst/Makefile.am
gst/Makefile.am
+1
-1
stun/tools/Makefile.am
stun/tools/Makefile.am
+1
-1
No files found.
common.mk
View file @
542aa8de
ERROR_CFLAGS
=
\
ERROR_CFLAGS
=
\
-Wall
\
$(NICE_CFLAGS)
\
-Werror
\
-Wextra
\
-Wextra
\
-Wundef
\
-Wundef
\
-Wnested-externs
\
-Wnested-externs
\
...
...
configure.ac
View file @
542aa8de
AC_PREREQ(2.59c)
AC_PREREQ(2.59c)
dnl releases only do -Wall, cvs and prerelease does -Werror too
dnl use a three digit version number for releases, and four for cvs/prerelease
AC_INIT(nice, 0.0.1.1)
AC_INIT(nice, 0.0.1.1)
NICE_RELEASE="no"
AC_CONFIG_SRCDIR([agent/agent.c])
AC_CONFIG_SRCDIR([agent/agent.c])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE([-Wall])
AM_INIT_AUTOMAKE([-Wall])
...
@@ -28,13 +33,14 @@ NICE_LIBVERSION=${NICE_CURRENT}:${NICE_REVISION}:${NICE_AGE}
...
@@ -28,13 +33,14 @@ NICE_LIBVERSION=${NICE_CURRENT}:${NICE_REVISION}:${NICE_AGE}
NICE_LT_LDFLAGS="-version-info ${NICE_LIBVERSION}"
NICE_LT_LDFLAGS="-version-info ${NICE_LIBVERSION}"
AC_SUBST(NICE_LT_LDFLAGS)
AC_SUBST(NICE_LT_LDFLAGS)
# Checks for programs.
# Checks for programs.
AC_PROG_CC
AC_PROG_CC
dnl AC_PROG_CC_C99
AC_USE_SYSTEM_EXTENSIONS
AC_USE_SYSTEM_EXTENSIONS
AC_PROG_LIBTOOL
AC_PROG_LIBTOOL
# Checks for compiler features
# Checks for compiler features
AC_C_RESTRICT
AC_C_RESTRICT
...
@@ -45,6 +51,15 @@ AC_DEFINE([_FORTIFY_SOURCE], [2], [Define to `2' to get GNU/libc warnings.])
...
@@ -45,6 +51,15 @@ AC_DEFINE([_FORTIFY_SOURCE], [2], [Define to `2' to get GNU/libc warnings.])
AC_DEFINE([NICEAPI_EXPORT], [ ], [Public library function implementation])
AC_DEFINE([NICEAPI_EXPORT], [ ], [Public library function implementation])
AC_CHECK_HEADERS([arpa/inet.h net/in.h ifaddrs.h])
AC_CHECK_HEADERS([arpa/inet.h net/in.h ifaddrs.h])
NICE_CFLAGS="-Wall"
dnl if asked for, add -Werror if supported
if test "x$NICE_RELEASE" != "xyes"; then
NICE_CFLAGS="$NICE_CFLAGS -Werror"
fi
AC_SUBST(NICE_CFLAGS)
AC_MSG_NOTICE([set NICE_CFLAGS to $NICE_CFLAGS])
# Checks for libraries.
# Checks for libraries.
AC_CHECK_LIB(rt, clock_gettime, [LIBRT="-lrt"], [LIBRT=""])
AC_CHECK_LIB(rt, clock_gettime, [LIBRT="-lrt"], [LIBRT=""])
AC_CHECK_FUNCS([poll])
AC_CHECK_FUNCS([poll])
...
...
gst/Makefile.am
View file @
542aa8de
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
#
#
# Licensed under MPL 1.1/LGPL 2.1. See file COPYING.
# Licensed under MPL 1.1/LGPL 2.1. See file COPYING.
AM_CFLAGS
=
-Wall
-Werror
\
AM_CFLAGS
=
$(NICE_CFLAGS)
\
$(GST_CFLAGS)
\
$(GST_CFLAGS)
\
-I
$(top_srcdir)
\
-I
$(top_srcdir)
\
-I
$(top_srcdir)
/socket
\
-I
$(top_srcdir)
/socket
\
...
...
stun/tools/Makefile.am
View file @
542aa8de
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#
#
include
$(top_srcdir)/common.mk
include
$(top_srcdir)/common.mk
AM_CFLAGS
=
-std
=
gnu99
AM_CFLAGS
=
-std
=
gnu99
$(ERROR_CFLAGS)
AM_CPPFLAGS
=
-I
$(top_srcdir)
AM_CPPFLAGS
=
-I
$(top_srcdir)
bin_PROGRAMS
=
stunbdc stund
bin_PROGRAMS
=
stunbdc stund
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment