]> git.pld-linux.org Git - packages/satyr.git/blob - satyr-libopcodes.patch
- updated to 0.14
[packages/satyr.git] / satyr-libopcodes.patch
1 --- satyr-0.5/configure.ac.orig 2013-07-25 15:58:49.666496568 +0200
2 +++ satyr-0.5/configure.ac      2013-07-25 16:01:02.469824330 +0200
3 @@ -44,37 +44,10 @@
4      [echo "will not be built.  If you want to build core fingerprinting support, please ensure"]
5      [echo "that libopcodes is installed and its directory is included in the search path."]
6      [echo "Then run configure again before attempting to build Satyr."]
7 +[else]
8 +    have_good_libopcodes=1
9  [fi]
10  
11 -# Check libopcodes
12 -AC_MSG_CHECKING([whether libopcodes is position independent])
13 -opcodes_pic="not found"
14 -# ugly, but still better than whitelisting known-working systems
15 -for DIR in /lib /usr/lib /lib64 /usr/lib64; do
16 -  OPCODES="$DIR/libopcodes.a"
17 -  if ! test -r $OPCODES; then
18 -      continue
19 -  fi
20 -
21 -  if readelf -r $OPCODES | grep R_X86_64_32 >/dev/null; then
22 -      opcodes_pic=no
23 -      break
24 -  else
25 -      opcodes_pic=yes
26 -      break
27 -  fi
28 -done
29 -AC_MSG_RESULT([$opcodes_pic])
30 -
31 -[if test "$opcodes_pic" = "no" -a "$target_cpu" = "x86_64"; then]
32 -    [echo "The libopcodes library on your system was not compiled with PIC. The core backtrace fingerprinting support "]
33 -    [echo "will not be built.  If you want to build core backtrace support, please ensure"]
34 -    [echo "that the provided libopcodes is build with -fPIC."]
35 -    [echo "Then run configure again before attempting to build Satyr."]
36 -[fi]
37 -
38 -test ! \( "$opcodes_pic" = "yes" -a "$have_libopcodes" = "yes" -a "$target_cpu" = "x86_64" \)
39 -have_good_libopcodes=$?
40  AM_CONDITIONAL(HAVE_LIBOPCODES, test $have_good_libopcodes -eq 1)
41  AC_DEFINE_UNQUOTED(HAVE_LIBOPCODES, $have_good_libopcodes, [Have libopcodes compiled with -fPIC])
42  
This page took 0.031348 seconds and 3 git commands to generate.