File tree 2 files changed +8
-2
lines changed 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
## [ Unreleased]
8
8
### Fixed
9
9
- Fixed underscore only identifiers to allow more than 4 characters
10
+ - Update LDFLAGS to reduce linker warnings
10
11
11
12
## [ 1.3.1] - 2019-05-01
12
13
### Fixed
Original file line number Diff line number Diff line change @@ -110,11 +110,16 @@ You can disable ccache by setting environment variable CCACHE_DISABLE=1.
110
110
CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[ 0-9s] *//g'`
111
111
CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[ 0-9s] *//g'`
112
112
dnl Remove --coverage flag from LDFLAGS
113
- LDFLAGS=`echo "$LDFLAGS" | $SED -e 's/--coverage//g'`
113
+ LDFLAGS=`echo "$LDFLAGS" | $SED -e 's/--coverage)//g' -e 's/-fprofile-arcs//g' -e 's/-ftest-coverage //g'`
114
114
changequote ( [ ,] )
115
115
116
116
dnl Add the special flags
117
- LDFLAGS="$LDFLAGS --coverage"
117
+ if test "$($CC --version | head -n 1 | cut -d' ' -f1)" = "Apple"; then
118
+ LDFLAGS="$LDFLAGS -fprofile-arcs -ftest-coverage"
119
+ else
120
+ LDFLAGS="$LDFLAGS -coverage"
121
+ fi
122
+
118
123
CFLAGS="$CFLAGS -O0 -ggdb -fprofile-arcs -ftest-coverage"
119
124
CXXFLAGS="$CXXFLAGS -O0 -ggdb -fprofile-arcs -ftest-coverage"
120
125
You can’t perform that action at this time.
0 commit comments