[Beignet] [PATCH] build: fix a CXXFLAGS override bug in backend directory.

Yang, Rong R rong.r.yang at intel.com
Wed Sep 10 00:14:17 PDT 2014


LGTM, thanks.

> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Zhigang Gong
> Sent: Tuesday, September 09, 2014 11:48 AM
> To: beignet at lists.freedesktop.org
> Cc: Gong, Zhigang
> Subject: [Beignet] [PATCH] build: fix a CXXFLAGS override bug in backend
> directory.
> 
> Reported-by: Jérôme
> 
> Signed-off-by: Zhigang Gong <zhigang.gong at intel.com>
> ---
>  backend/CMakeLists.txt | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/backend/CMakeLists.txt b/backend/CMakeLists.txt index
> ca674cf..6a31c68 100644
> --- a/backend/CMakeLists.txt
> +++ b/backend/CMakeLists.txt
> @@ -34,9 +34,7 @@ else (GBE_DEBUG_MEMORY)  endif
> (GBE_DEBUG_MEMORY)
> 
>  # Hide all symbols and allows the symbols declared as visible to be exported
> -set (CMAKE_C_CXX_FLAGS "-fvisibility=hidden ${CMAKE_C_CXX_FLAGS}")
> -
> -set (CMAKE_C_CXX_FLAGS -DGBE_COMPILER_AVAILABLE=1)
> +set (CMAKE_C_CXX_FLAGS "-fvisibility=hidden
> -DGBE_COMPILER_AVAILABLE=1
> +${CMAKE_C_CXX_FLAGS}")
> 
>  if (COMPILER STREQUAL "GCC")
>    set (CMAKE_C_CXX_FLAGS "${CMAKE_C_CXX_FLAGS} -funroll-loops
> -Wstrict-aliasing=2 -fstrict-aliasing -msse2 -msse3 -mssse3 -msse4.1 -fPIC
> -Wall")
> --
> 1.8.3.2
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list