intel / media-driver

Intel Graphics Media Driver to support hardware decode, encode and video processing.
https://github.com/intel/media-driver/wiki
Other
969 stars 345 forks source link

Remove enforced compilation flags from CMake files #729

Open ostash opened 5 years ago

ostash commented 5 years ago

Hello,

Currently, a lot of compiler flags is forcefully set in media_driver/cmake/linux/media_compile_flags_linux.cmake

This makes packaging driver by distributions complicated, as compilation flags (-march, -mtune, etc) should be passed from distribution rules (RPM specs, debian/rules, Gentoo ebuilds/make.conf, etc.).

Please, remove most of them.

dvrogozh commented 5 years ago

+1. It is better to set compilation flags externally. Compilation harness requirements might be different for different distros/needs. No need to guess and force.

XinfengZhang commented 4 years ago

@ljia5 , could you help to check it, some flags should be decide by user.