Add -lm
This commit is contained in:
parent
86bc2c8ed6
commit
d8319451bc
15
lm.patch
Normal file
15
lm.patch
Normal file
@ -0,0 +1,15 @@
|
||||
diff -up pygobject-3.0.0/configure.ac.lm pygobject-3.0.0/configure.ac
|
||||
--- pygobject-3.0.0/configure.ac.lm 2011-09-28 08:30:20.922562047 -0400
|
||||
+++ pygobject-3.0.0/configure.ac 2011-09-28 08:30:26.406607623 -0400
|
||||
@@ -154,6 +154,11 @@ AM_PATH_GLIB_2_0(glib_required_version,,
|
||||
if test -n "$export_dynamic"; then
|
||||
GLIB_LIBS=`echo $GLIB_LIBS | sed -e "s/$export_dynamic//"`
|
||||
fi
|
||||
+
|
||||
+AC_CHECK_LIBM
|
||||
+AC_SUBST(LIBM)
|
||||
+GLIB_LIBS="$GLIB_LIBS $LIBM"
|
||||
+
|
||||
PYTHON_BASENAME=`basename $PYTHON`
|
||||
AC_SUBST([PYTHON_BASENAME])
|
||||
|
||||
@ -22,6 +22,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
Source: http://ftp.gnome.org/pub/GNOME/sources/pygobject/3.0/pygobject-%{version}.tar.xz
|
||||
|
||||
### Patches ###
|
||||
Patch0: lm.patch
|
||||
|
||||
### Build Dependencies ###
|
||||
|
||||
@ -34,6 +35,7 @@ BuildRequires: python3-cairo-devel
|
||||
%endif # if with_python3
|
||||
|
||||
BuildRequires: pycairo-devel
|
||||
BuildRequires: automake, autoconf, libtool
|
||||
|
||||
# The cairo override module depends on this
|
||||
Requires: pycairo
|
||||
@ -73,6 +75,9 @@ for use in Python 3 programs.
|
||||
|
||||
%prep
|
||||
%setup -q -n pygobject-%{version}
|
||||
%patch0 -p1 -b .lm
|
||||
|
||||
autoreconf
|
||||
|
||||
%if 0%{?with_python3}
|
||||
rm -rf %{py3dir}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user