Skip to content

Commit

Permalink
[Linux ULT] Fix ULT link error on Arch Linux.(CL#753129)
Browse files Browse the repository at this point in the history
Change-Id: I2f12d3873674c39b69d6f3bb5fabc33765dfea10
  • Loading branch information
walter-bai authored and Sherry-Lin committed Apr 2, 2018
1 parent 1594bea commit d95d8f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions media_driver/linux/ult/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
# OTHER DEALINGS IN THE SOFTWARE.
cmake_minimum_required(VERSION 3.1)

#-fno-plt is a GCC option to disable the use of PLT for external function calls in position-independent code.
#This option is by default enabled on some Linux distributions such as Arch Linux, which can cause link error.
string(REPLACE "-fno-plt" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")

add_compile_options(-std=c++11)

include(${MEDIA_DRIVER_CMAKE}/linux/media_feature_flags_linux.cmake)
Expand Down

0 comments on commit d95d8f7

Please sign in to comment.