File: respect-ldflags.patch

package info (click to toggle)
libtomcrypt 1.17-9
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,728 kB
  • ctags: 2,733
  • sloc: ansic: 38,792; makefile: 326; sh: 88; perl: 48
file content (20 lines) | stat: -rw-r--r-- 928 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: makefile: respect LDFLAGS when linking
Author: Michael Stapelberg <stapelberg@debian.org>
Forwarded: https://github.com/libtom/libtomcrypt/pull/32
Last-Updated: 2014-01-02

---

Index: libtomcrypt/makefile.shared
===================================================================
--- libtomcrypt.orig/makefile.shared	2014-01-02 07:16:01.469065076 +0100
+++ libtomcrypt/makefile.shared	2014-01-02 07:16:18.408832890 +0100
@@ -249,7 +249,7 @@
 objs: $(OBJECTS)
 
 $(LIBNAME): $(OBJECTS)
-	libtool --silent --mode=link gcc $(CFLAGS) `find . -type f | grep "[.]lo" | grep "src/" | xargs` $(EXTRALIBS) -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION)
+	libtool --silent --mode=link gcc $(LDFLAGS) $(CFLAGS) `find . -type f | grep "[.]lo" | grep "src/" | xargs` $(EXTRALIBS) -o $(LIBNAME) -rpath $(LIBPATH) -version-info $(VERSION)
 
 install: $(LIBNAME)
 	install -d -g $(GROUP) -o $(USER) $(DESTDIR)$(LIBPATH)