7 Commits

Author SHA1 Message Date
Pierre Kestener
2e8dbeea62 fix cmake macro add_backward; just use variable BACKWARD_INCLUDE_DIRS instead of _BACKWARD_INCLUDE_DIRS 2017-11-14 15:59:29 +01:00
Manu343726
bfbd1a2047 Simplify setup of backward include dirs. Fixes #77 2017-11-01 10:36:48 +00:00
Kevin Funk
fe032a1345 backward-cpp: Make sure to properly link against bfd.a
On some distributions, libbfd is only available as static library. E.g.
on OpenSuse Leap 42.2, there are these two files:
  libbfd.a
  libbfd-2.28-system.so

backward-cpp, when attempting to link to bfd, will select the static
library and fail b/c there are undefined references to symbols from
libiberty/libz:
```
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../lib64/libbfd.a(elflink.o):
In function `elf_link_add_object_symbols':
/home/abuild/rpmbuild/BUILD/binutils-2.26.1/build-dir/bfd/../../bfd/elflink.c:4733:
undefined reference to `objalloc_free_block'
/home/abuild/rpmbuild/BUILD/binutils-2.26.1/build-dir/bfd/../../bfd/elflink.c:5027:
undefined reference to `_sch_istable'
...
```

After this patch we also link against the direct dependencies of libbfd.a, namely libiberty and libz

Also see: https://github.com/KDAB/GammaRay/issues/386
2017-07-19 16:18:33 +02:00
François-Xavier Bourlet
6ae8564fbd enable tests that somebody thought it was a good idea to permanently disable. 2017-03-15 17:32:15 -07:00
Edison Gustavo Muenz
e8b8b5b2ec Prevent that the cmake variable BACKWARD_INCLUDE_DIRS be infinitely appended on successive cmake runs 2016-11-17 19:15:44 -02:00
Edison Gustavo Muenz
d242b6db4c Don't use find_package() in CMakeLists.txt since it does not make sense 2016-11-17 18:22:56 -02:00
Edison Gustavo Muenz
8c569af941 Add support to find_package(Backward) 2016-11-17 17:15:47 -02:00