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