package/exiv2: fix compiler flags detection
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 19 Jul 2020 14:34:04 +0000 (16:34 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 19 Jul 2020 16:17:36 +0000 (18:17 +0200)
commitd0053cdb19dbc9123208b3e7ddf2599fa04ff0a3
tree881106c38607e45b858ffcc0f7ae25735081c3de
parentae26a5b539242ca5952a1e4f45a43d2ff64856bb
package/exiv2: fix compiler flags detection

Add a patch, which has been submitted upstream, to properly detect the
availability of compiler flags before using them.

This will fix the build of exiv2 on CPU architectures for which gcc
doesn't implement -fcf-protection.

Fixes:

  http://autobuild.buildroot.net/results/ef6a6fa2309e66a7a36fface626ae0da1a7ec633/
  (and many similar build failures on other architectures)

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
[yann.morin.1998@free.fr:
  - fix indentation s/TAB/spaces/
  - fix CRLF dropped by patchwork
]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/exiv2/0001-cmake-compilerFlags.cmake-properly-detect-availabili.patch [new file with mode: 0644]