Another try at portability. Don't do -Werror. While probably

the best thing to do from a code hygeine standpoint, it's too
painful to try to get right for now.

Fixes #174 (second try).
This commit is contained in:
Bruce A. Mah 2014-05-19 15:22:08 -07:00
parent 99b5861c22
commit 94c0bfffcb
3 changed files with 9 additions and 11 deletions

View File

@ -20,11 +20,9 @@ AC_PROG_RANLIB
AC_PROG_LN_S
AC_PROG_LIBTOOL
# Add -Wall -Werror if we are using GCC.
# We also need -Wno-deprecated-declarations, primarily because on MacOS, daemon(3)
# is deprecated starting from MacOS 10.5.
# Add -Wall if we are using GCC.
if test "x$GCC" = "xyes"; then
CFLAGS="$CFLAGS -Wall -Werror -Wno-deprecated-declarations"
CFLAGS="$CFLAGS -Wall"
fi
# Checks for header files.

View File

@ -285,11 +285,11 @@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
mic_SOURCES = mic.c
mic_CFLAGS = -g -Wall
mic_CFLAGS = -g
mic_LDADD = ../src/libiperf.la
mic_LDFLAGS = -g
mis_SOURCES = mis.c
mis_CFLAGS = -g -Wall
mis_CFLAGS = -g
mis_LDADD = ../src/libiperf.la
mis_LDFLAGS = -g
all: all-am

View File

@ -587,7 +587,7 @@ libiperf_la_SOURCES = \
# Specify the sources and various flags for the iperf binary
iperf3_SOURCES = main.c
iperf3_CFLAGS = -g -Wall
iperf3_CFLAGS = -g
iperf3_LDADD = libiperf.la
iperf3_LDFLAGS = -g
@ -596,21 +596,21 @@ iperf3_LDFLAGS = -g
iperf3_profile_SOURCES = main.c \
$(libiperf_la_SOURCES)
iperf3_profile_CFLAGS = -pg -g -Wall
iperf3_profile_CFLAGS = -pg -g
iperf3_profile_LDADD = libiperf.la
iperf3_profile_LDFLAGS = -pg -g
# Specify the sources and various flags for the test cases
t_timer_SOURCES = t_timer.c
t_timer_CFLAGS = -g -Wall
t_timer_CFLAGS = -g
t_timer_LDFLAGS =
t_timer_LDADD = libiperf.la
t_units_SOURCES = t_units.c
t_units_CFLAGS = -g -Wall
t_units_CFLAGS = -g
t_units_LDFLAGS =
t_units_LDADD = libiperf.la
t_uuid_SOURCES = t_uuid.c
t_uuid_CFLAGS = -g -Wall
t_uuid_CFLAGS = -g
t_uuid_LDFLAGS =
t_uuid_LDADD = libiperf.la
dist_man_MANS = iperf3.1 libiperf.3