File: 90_fix_ldflags.diff

package info (click to toggle)
sleuthkit 3.2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 9,624 kB
  • sloc: ansic: 104,268; sh: 9,445; cpp: 7,793; makefile: 256
file content (29 lines) | stat: -rw-r--r-- 933 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Author: Cristian Greco <cristian.debian@gmail.com>
Description: Avoid linking against unused libraries (this holds both for
library and tools) by enabling extra LDFLAGS at build time.

--- a/configure.ac
+++ b/configure.ac
@@ -121,7 +121,10 @@
     )]
     # Check for the header file first to make sure they have the dev install
     [AC_CHECK_HEADERS([libewf.h], 
-      [AC_CHECK_LIB([ewf], [libewf_open])]
+      [AC_CHECK_LIB([ewf], [libewf_open],[
+        AC_SUBST([LIBEWF_LIBS],["-lewf"])
+        AC_DEFINE([HAVE_LIBEWF],[1],[Define to have libewf header included.])
+      ])]
     )]
 )
 
--- a/tsk3/Makefile.am
+++ b/tsk3/Makefile.am
@@ -6,7 +6,7 @@
 libtsk3_la_SOURCES =
 libtsk3_la_LIBADD = base/libtskbase.la img/libtskimg.la \
     vs/libtskvs.la fs/libtskfs.la hashdb/libtskhashdb.la \
-    auto/libtskauto.la
+    auto/libtskauto.la @LIBEWF_LIBS@
 # current:revision:age
 libtsk3_la_LDFLAGS = -version-info 7:0:4