File: fix_makefiles.patch

package info (click to toggle)
libint 1.2.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,664 kB
  • sloc: sh: 10,214; ansic: 9,478; makefile: 437; perl: 141
file content (23 lines) | stat: -rw-r--r-- 895 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Author: Daniel Leidert <dleidert@debian.org>
Description: Enable LDFLAGS and disable rpath. Fix SHELL setting.
 For some reason `/bin/sh path/to/libtool' fails if /bin/sh is a
 symlink to dash.

--- a/src/lib/MakeVars.in
+++ b/src/lib/MakeVars.in
@@ -36,12 +36,12 @@
 ENABLESHARED = @ENABLESHARED@
 
 ifeq ($(ENABLESHARED),yes)
-  LIBTOOL = $(SHELL) $(TOPDIR)/libtool
+  LIBTOOL = /bin/bash $(TOPDIR)/libtool
   LTLINK = $(LIBTOOL) --mode=link
   ifneq ($(BUILDID),)
-    LTLINKLIBOPTS = -rpath $(libdir) -release $(BUILDID) -version-info $(LIBINT_SO_VERSION)
+    LTLINKLIBOPTS = -rpath $(libdir) -release $(BUILDID) -version-info $(LIBINT_SO_VERSION) $(LDFLAGS)
   else
-    LTLINKLIBOPTS = -rpath $(libdir) -version-info $(LIBINT_SO_VERSION)
+    LTLINKLIBOPTS = -rpath $(libdir) -version-info $(LIBINT_SO_VERSION) $(LDFLAGS)
   endif
   LTLINKBINOPTS =
   LTCOMP = $(LIBTOOL) --mode=compile