diff options
author | Bernd Kuhls <bernd.kuhls@t-online.de> | 2018-07-29 20:55:23 +0200 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2018-08-21 10:59:35 +0800 |
commit | d805098c739a9dfffacb2591ad8906b70376216e (patch) | |
tree | 57039f8b78510b27092911feffb00d15037babf5 /src | |
parent | edafd706539433796a4e4478dd16ec979aa0239c (diff) | |
download | libva-intel-driver-d805098c739a9dfffacb2591ad8906b70376216e.tar.gz |
Check for -fstack-protector
Not all toolchains provide support for -fstack-protector. This patch
provides a configure check to avoid build errors like
/home/buildroot/buildroot/output/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/6.4.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: cannot find -lssp_nonshared
/home/buildroot/buildroot/output/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/6.4.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: cannot find -lssp
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index c26293dd..5c52658a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -35,9 +35,12 @@ AM_CPPFLAGS = \ driver_cflags = \ -Wall \ -fvisibility=hidden \ - -fstack-protector \ $(NULL) +if USE_SSP +driver_cflags += -fstack-protector +endif + driver_ldflags = \ -avoid-version \ -no-undefined \ |