Make ./config GCC 5.x aware
This patch makes two little things: 1. makes ../config GCC 5.x friendly 2. completely removes wavpack related stuff from Makefile if ../config --disable-wavpack given Last one is for #35 issue. I also stuck into this when compiling w/o wavpack. Compiled with this patch by gcc 5.1.0 on ArchLinux x86_64 from git master: cd pcompress-master patch -Np1 < ../gcc5.patch ./config --prefix=/usr --no-1.3-archive-compat --disable-wavpack make make install have no problems and works fine.
This commit is contained in:
parent
c52306fe6d
commit
0bca8f75bb
1 changed files with 5 additions and 1 deletions
6
config
6
config
|
@ -293,7 +293,7 @@ IFS=.
|
||||||
set -- ${vers}
|
set -- ${vers}
|
||||||
IFS="$OIFS"
|
IFS="$OIFS"
|
||||||
|
|
||||||
if [ $1 -lt 4 -o $2 -lt 4 ]
|
if [ $1 -lt 4 ] || [ $1 -eq 4 -a $2 -lt 4 ]
|
||||||
then
|
then
|
||||||
echo "ERROR:"
|
echo "ERROR:"
|
||||||
echo "GCC version 4.4 or above is required."
|
echo "GCC version 4.4 or above is required."
|
||||||
|
@ -804,3 +804,7 @@ s#@WAVPACK_LIBSPEC@#${wavpack_libspec}#g
|
||||||
s#@WAVPACK_DIR@#${wavpack_dir}#g
|
s#@WAVPACK_DIR@#${wavpack_dir}#g
|
||||||
" > Makefile
|
" > Makefile
|
||||||
|
|
||||||
|
if [ "x${enable_wavpack}" == "x" ]
|
||||||
|
then
|
||||||
|
sed -i -e '/^WAVPKSRCS/ D' -e '/^WAVPKOBJS/ D' Makefile
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue