diff options
Diffstat (limited to 'meta/recipes-multimedia/libvorbis/libvorbis/0001-configure-Check-for-clang.patch')
-rw-r--r-- | meta/recipes-multimedia/libvorbis/libvorbis/0001-configure-Check-for-clang.patch | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/meta/recipes-multimedia/libvorbis/libvorbis/0001-configure-Check-for-clang.patch b/meta/recipes-multimedia/libvorbis/libvorbis/0001-configure-Check-for-clang.patch index 7dad0cd8a5..b06029b98b 100644 --- a/meta/recipes-multimedia/libvorbis/libvorbis/0001-configure-Check-for-clang.patch +++ b/meta/recipes-multimedia/libvorbis/libvorbis/0001-configure-Check-for-clang.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 44b4511784f9b51c514dff4ceb3cbeaf9c374d08 Mon Sep 17 00:00:00 2001 | 1 | From d619ccf6c11ab574466914c57994a82fb99401af Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 22 Mar 2017 16:06:55 +0000 | 3 | Date: Wed, 22 Mar 2017 16:06:55 +0000 |
4 | Subject: [PATCH] configure: Check for clang | 4 | Subject: [PATCH] configure: Check for clang |
@@ -13,12 +13,12 @@ Upstream-Status: Pending | |||
13 | 1 file changed, 17 insertions(+), 2 deletions(-) | 13 | 1 file changed, 17 insertions(+), 2 deletions(-) |
14 | 14 | ||
15 | diff --git a/configure.ac b/configure.ac | 15 | diff --git a/configure.ac b/configure.ac |
16 | index eddd02d..00ecba5 100644 | 16 | index 28b0a14..2d4e984 100644 |
17 | --- a/configure.ac | 17 | --- a/configure.ac |
18 | +++ b/configure.ac | 18 | +++ b/configure.ac |
19 | @@ -93,6 +93,16 @@ AC_ARG_ENABLE(examples, | 19 | @@ -98,6 +98,16 @@ AC_ARG_ENABLE(examples, |
20 | 20 | ||
21 | AM_CONDITIONAL(BUILD_EXAMPLES, [test "x$enable_examples" = xyes]) | 21 | AM_CONDITIONAL(BUILD_EXAMPLES, [test "x$enable_examples" = xyes]) |
22 | 22 | ||
23 | +AC_MSG_CHECKING([whether C compiler is clang]) | 23 | +AC_MSG_CHECKING([whether C compiler is clang]) |
24 | +$CC -x c /dev/null -dM -E > conftest.txt 2>&1 | 24 | +$CC -x c /dev/null -dM -E > conftest.txt 2>&1 |
@@ -33,9 +33,9 @@ index eddd02d..00ecba5 100644 | |||
33 | dnl -------------------------------------------------- | 33 | dnl -------------------------------------------------- |
34 | dnl Set build flags based on environment | 34 | dnl Set build flags based on environment |
35 | dnl -------------------------------------------------- | 35 | dnl -------------------------------------------------- |
36 | @@ -127,10 +137,15 @@ else | 36 | @@ -132,10 +142,15 @@ else |
37 | AC_MSG_RESULT([$GCC_VERSION]) | 37 | AC_MSG_RESULT([$GCC_VERSION]) |
38 | case $host in | 38 | case $host in |
39 | *86-*-linux*) | 39 | *86-*-linux*) |
40 | + if test "$CC_CLANG" = "1"; then | 40 | + if test "$CC_CLANG" = "1"; then |
41 | + ieeefp="" | 41 | + ieeefp="" |
@@ -43,8 +43,8 @@ index eddd02d..00ecba5 100644 | |||
43 | + ieefp="-mno-ieee-fp" | 43 | + ieefp="-mno-ieee-fp" |
44 | + fi | 44 | + fi |
45 | DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char" | 45 | DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char" |
46 | - CFLAGS="-O3 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char" | 46 | - CFLAGS="-O3 -Wall -Wextra -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char" |
47 | + CFLAGS="-O3 -ffast-math -D_REENTRANT -fsigned-char ${ieefp}" | 47 | + CFLAGS="-O3 -Wall -Wextra -ffast-math -D_REENTRANT -fsigned-char ${ieefp}" |
48 | # PROFILE="-Wall -Wextra -pg -g -O3 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static" | 48 | # PROFILE="-Wall -Wextra -pg -g -O3 -ffast-math -D_REENTRANT -fsigned-char -fno-inline -static" |
49 | - PROFILE="-Wall -Wextra -pg -g -O3 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline" | 49 | - PROFILE="-Wall -Wextra -pg -g -O3 -ffast-math -mno-ieee-fp -D_REENTRANT -fsigned-char -fno-inline" |
50 | + PROFILE="-Wall -Wextra -pg -g -O3 -ffast-math ${ieefp} -D_REENTRANT -fsigned-char -fno-inline" | 50 | + PROFILE="-Wall -Wextra -pg -g -O3 -ffast-math ${ieefp} -D_REENTRANT -fsigned-char -fno-inline" |
@@ -52,5 +52,5 @@ index eddd02d..00ecba5 100644 | |||
52 | # glibc < 2.1.3 has a serious FP bug in the math inline header | 52 | # glibc < 2.1.3 has a serious FP bug in the math inline header |
53 | # that will cripple Vorbis. Look to see if the magic FP stack | 53 | # that will cripple Vorbis. Look to see if the magic FP stack |
54 | -- | 54 | -- |
55 | 1.8.3.1 | 55 | 2.17.0 |
56 | 56 | ||