f30 libiw isn't linked to libm.so

This commit is contained in:
Jens Petersen 2019-03-04 11:32:31 +08:00
parent 2e92d5a57d
commit 32c895cd5b
2 changed files with 12 additions and 0 deletions

10
iwlib-0.1.0-libm.patch Normal file
View File

@ -0,0 +1,10 @@
--- iwlib-0.1.0/iwlib.cabal~ 2018-01-31 07:00:13.000000000 +0800
+++ iwlib-0.1.0/iwlib.cabal 2019-03-04 11:24:19.033283194 +0800
@@ -24,5 +24,5 @@
includes: iwlib.h
default-language: Haskell2010
exposed-modules: Network.IWlib
- extra-libraries: iw
+ extra-libraries: iw, m
ghc-options: -Wall
\ No newline at end of file

View File

@ -24,6 +24,7 @@ Source1: https://hackage.haskell.org/package/%{iwlib}/%{iwlib}.tar.gz
Source10: xmobar.desktop
Patch0: xmobar-0.23.1-flags.patch
Patch1: iwlib-0.1.0-libm.patch
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
@ -110,6 +111,7 @@ This package provides the Haskell %{name} library development files.
%setup -q -a1
# End cabal-rpm setup
%patch0 -p1 -b .orig
%patch1 -p0 -b .orig
%build