From d4054f10e976745ad5e20e726f89934aae6f9a6c Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sun, 22 Jan 2017 23:49:53 +0100 Subject: [PATCH] libvorbis: Patch to build with clang --- packages/libvorbis/configure.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 packages/libvorbis/configure.patch diff --git a/packages/libvorbis/configure.patch b/packages/libvorbis/configure.patch new file mode 100644 index 000000000..c19758d68 --- /dev/null +++ b/packages/libvorbis/configure.patch @@ -0,0 +1,15 @@ +clang does not support -mno-ieee-fp: + https://llvm.org/bugs/show_bug.cgi?id=25615 + +diff -u -r ../libvorbis-1.3.5/configure ./configure +--- ../libvorbis-1.3.5/configure 2015-02-26 23:09:49.000000000 +0100 ++++ ./configure 2017-01-22 23:48:11.744025641 +0100 +@@ -12685,7 +12685,7 @@ + case $host in + *86-*-linux*) + DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char" +- CFLAGS="-O3 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char" ++ CFLAGS="-O3 -ffast-math -D_REENTRANT -fsigned-char" + # PROFILE="-Wall -Wextra -pg -g -O3 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static" + PROFILE="-Wall -Wextra -pg -g -O3 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline" +