]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blobdiff - package/tpm2-abrmd/tpm2-abrmd.mk
tpm2-abrmd: allow building without stack smashing protection (SSP)
[coffee/buildroot.git] / package / tpm2-abrmd / tpm2-abrmd.mk
index 0d6a167210f7e16c30ec22cb9935177ff70a6cd6..b918ceaa4b500438c6ae34688117e41c8df57344 100644 (file)
@@ -11,6 +11,10 @@ TPM2_ABRMD_LICENSE_FILES = LICENSE
 TPM2_ABRMD_INSTALL_STAGING = YES
 TPM2_ABRMD_DEPENDENCIES = dbus libglib2 tpm2-tss host-pkgconf
 
+# configure.ac doesn't contain a link test, so it doesn't detect when
+# libssp is missing.
+TPM2_ABRMD_CONF_ENV = ax_cv_check_cflags___fstack_protector_all=$(if $(BR2_TOOLCHAIN_HAS_SSP),yes,no)
+
 TPM2_ABRMD_CONF_OPTS += \
        --with-systemdsystemunitdir=$(if $(BR2_INIT_SYSTEMD),/usr/lib/systemd/system,no) \
        --with-udevrulesdir=$(if $(BR2_PACKAGE_HAS_UDEV),/usr/lib/udev/rules.d,no)