summaryrefslogtreecommitdiff
blob: 48571f39379f85fd9c9449dd7e0816866ef1fe58 (plain)
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
30
31
32
33
34
35
36
Hardcoding library path does not work with DESTDIR installs.

Affects any platform with 'hardcode_direct=yes' or 'hardcode_minus_L=yes'.
According to libtool.m4 (as of libtool-1.5.26), these are:
   *-aix*
   *-hpux9
   hppa-hpux* (not hppa64 or ia64)
   *-netbsd
   *-openbsd
   *-freebsd
   *-dragonfly
   *-newsos6
   *-os2
   *-amigaos
   *-sunos4
   *-sysv4
It definitely is required for aix (to support DESTDIR),
although it should help for others too...

--- ../../libtool.orig	2009-07-16 18:06:59 +0200
+++ ../../libtool	2009-07-16 18:07:45 +0200
@@ -6298,13 +6298,13 @@
 	    add_dir=
 	    add=
 	    # Finalize command for both is simple: just hardcode it.
 	    if test "$hardcode_direct" = yes &&
 	       test "$hardcode_direct_absolute" = no; then
 	      add="$libdir/$linklib"
-	    elif test "$hardcode_minus_L" = yes; then
+	    elif false && test "$hardcode_minus_L" = yes; then
 	      add_dir="-L$libdir"
 	      add="-l$name"
 	    elif test "$hardcode_shlibpath_var" = yes; then
 	      case :$finalize_shlibpath: in
 	      *":$libdir:"*) ;;
 	      *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;