[packages/rtmidi] Do not add -L/usr/lib linker option

jajcus jajcus at pld-linux.org
Wed Nov 22 15:36:34 CET 2017


commit 6b159dc2890e54283e530fddc33ba2bb8c15b53a
Author: Jacek Konieczny <j.konieczny at eggsoft.pl>
Date:   Wed Nov 22 15:35:42 2017 +0100

    Do not add -L/usr/lib linker option
    
    this is just wrong

 linking.patch | 11 +++++++++++
 rtmidi.spec   |  3 +++
 2 files changed, 14 insertions(+)
---
diff --git a/rtmidi.spec b/rtmidi.spec
index 8b956a1..8c40b12 100644
--- a/rtmidi.spec
+++ b/rtmidi.spec
@@ -11,6 +11,7 @@ License:	MIT
 Group:		Applications
 Source0:	http://www.music.mcgill.ca/~gary/rtmidi/release/%{name}-%{version}.tar.gz
 # Source0-md5:	d22e3a5dee972fa0725c420923f1ce65
+Patch0:		linking.patch
 URL:		http://music.mcgill.ca/%7Egary/rtmidi/
 %{?with_alsa:BuildRequires:	alsa-lib-devel}
 BuildRequires:	autoconf
@@ -61,6 +62,8 @@ Statyczna biblioteka %{name}.
 %prep
 %setup -q
 
+%patch0 -p1
+
 %build
 #%%{__gettextize}
 %{__libtoolize}
diff --git a/linking.patch b/linking.patch
new file mode 100644
index 0000000..2ccb831
--- /dev/null
+++ b/linking.patch
@@ -0,0 +1,11 @@
+diff -dur rtmidi-3.0.0.orig/configure.ac rtmidi-3.0.0/configure.ac
+--- rtmidi-3.0.0.orig/configure.ac	2017-09-01 02:10:07.000000000 +0200
++++ rtmidi-3.0.0/configure.ac	2017-11-22 15:33:53.000000000 +0100
+@@ -76,7 +76,6 @@
+ 
+ # Set paths if prefix is defined
+ if test "x$prefix" != "x" && test "x$prefix" != "xNONE"; then
+-  LIBS="$LIBS -L$prefix/lib"
+   CPPFLAGS="$CPPFLAGS -I$prefix/include/rtmidi"
+ fi
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rtmidi.git/commitdiff/6b159dc2890e54283e530fddc33ba2bb8c15b53a



More information about the pld-cvs-commit mailing list