~ubuntu-branches/ubuntu/trusty/sysprof/trusty

« back to all changes in this revision

Viewing changes to debian/patches/static_libbfd.patch

  • Committer: Bazaar Package Importer
  • Author(s): Ritesh Raj Sarraf
  • Date: 2011-06-13 23:05:39 UTC
  • mfrom: (8.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110613230539-426qhsc3k996edou
Tags: 1.1.6-2
Upload to unstable 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Author: Michel Dänzer <daenzer@debian.org>
2
 
Description: Link statically with libbfd.
3
 
--- a/configure
4
 
+++ b/configure
5
 
@@ -3893,7 +3893,7 @@
6
 
 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bfd_bfd_get_error" >&5
7
 
 $as_echo "$ac_cv_lib_bfd_bfd_get_error" >&6; }
8
 
 if test "x$ac_cv_lib_bfd_bfd_get_error" = x""yes; then
9
 
-  DEP_LIBS="$DEP_LIBS -lbfd -liberty"
10
 
+  DEP_LIBS="$DEP_LIBS /usr/lib/libbfd.a -liberty"
11
 
 else
12
 
   { { $as_echo "$as_me:$LINENO: error: libbfd is required to compile sysprof" >&5
13
 
 $as_echo "$as_me: error: libbfd is required to compile sysprof" >&2;}
14
 
--- a/configure.ac
15
 
+++ b/configure.ac
16
 
@@ -90,7 +90,7 @@
17
 
   AC_CHECK_LIB(iberty, cplus_demangle_opname, [],
18
 
     AC_MSG_ERROR([libiberty is required to compile sysprof]), -ldl))
19
 
 
20
 
-AC_CHECK_LIB(bfd, bfd_get_error, [DEP_LIBS="$DEP_LIBS -lbfd -liberty"],
21
 
+AC_CHECK_LIB(bfd, bfd_get_error, [DEP_LIBS="$DEP_LIBS /usr/lib/libbfd.a -liberty"],
22
 
   AC_MSG_ERROR([libbfd is required to compile sysprof]),
23
 
   -liberty)
24