package/taglib: add upstream patch to fix taglib-config
authorJörg Krause <joerg.krause@embedded.rocks>
Mon, 10 Jun 2019 21:20:22 +0000 (23:20 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Mon, 10 Jun 2019 21:57:58 +0000 (23:57 +0200)
commitad29cd6224f3ac3317f36b243a8ba8e1623c679c
tree88192f490144f24449068ec43ee7a8e504320893
parente2d299485ee6997e32cbc1f11989925e22b8a9e1
package/taglib: add upstream patch to fix taglib-config

The current taglib-config program does not work when cross-compiling as it only
returns paths to the host, which breaks building programs which link against
taglib.

For example gerbera uses `taglib-config` and it fails with:

```
[..]
-- Found TagLib: -L/usr/lib -ltag
[..]
arm-linux-gnueabihf-g++: ERROR: unsafe header/library path used in cross-compilation: '-L/usr/lib'
```

Before the patch the output of `taglib-config` is:
```
$ ./output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/bin/taglib-config --libs
-L/usr/lib -ltag
```

Add a patch from upstream which fixes taglib-config.

After applying the fix, the pkg-config file is correct:
```
$ ./output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/bin/taglib-config --libs
-L/home/joerg/Development/git/buildroot/output/host/arm-buildroot-linux-gnueabihf/sysroot/usr/lib -ltag
```

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/taglib/0001-fix-taglib-config-file-for-cross-compiling-906.patch [new file with mode: 0644]