File: 0006-Fix-library-install-path.patch

package info (click to toggle)
tf5 5.0beta8-10
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 3,736 kB
  • sloc: ansic: 25,484; perl: 103; makefile: 82; sh: 79
file content (38 lines) | stat: -rw-r--r-- 1,192 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
30
31
32
33
34
35
36
37
38
From: Russ Allbery <rra@debian.org>
Date: Sun, 14 Aug 2016 14:14:47 -0700
Subject: Fix library install path

The upstream top-level configure script doesn't correctly handle
--program-suffix without this tweak.
---
 configure.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in
index ffed268..1e347e3 100644
--- a/configure.in
+++ b/configure.in
@@ -591,13 +591,13 @@ fi
 dnl The "right" way of using program_transform_name, program_prefix, and
 dnl program_suffix expects you to use AC_ARG_PROGRAM here and do transformation
 dnl in the Makefile, but we want the values now, so we do it ourselves.
-EXENAME="tf"
+EXENAME="tf" PROGNAME="tf"
 test "${program_prefix}" != "NONE" && EXENAME="${program_prefix}${EXENAME}"
 test "${program_suffix}" != "NONE" && EXENAME="${EXENAME}${program_suffix}"
 if test "${program_transform_name}" != "NONE"; then
     EXENAME=`echo "${EXENAME}" | sed "${program_transform_name}"`
 fi
-LIBNAME="${EXENAME}-lib"
+LIBNAME="${PROGNAME}-lib"
 
 if test "$enable_symlink" = "no"; then
     SYMLINK=""
@@ -608,6 +608,7 @@ else
 fi
 
 AC_SUBST(EXENAME)
+AC_SUBST(PROGNAME)
 AC_SUBST(LIBNAME)
 AC_SUBST(SYMLINK)