Accepting request 129097 from home:msmeissn:branches:multimedia:libs
- fixed the -lm detection to actually work in --as-needed scenarios OBS-URL: https://build.opensuse.org/request/show/129097 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/gavl?expand=0&rev=5
This commit is contained in:
parent
16a179959b
commit
8779efc020
61
gavl-autoconf.patch
Normal file
61
gavl-autoconf.patch
Normal file
@ -0,0 +1,61 @@
|
||||
Index: gavl-1.4.0/acinclude.m4
|
||||
===================================================================
|
||||
--- gavl-1.4.0.orig/acinclude.m4
|
||||
+++ gavl-1.4.0/acinclude.m4
|
||||
@@ -46,7 +46,9 @@ AC_DEFUN([AC_C99_FUNC_LRINT],
|
||||
ac_cv_c99_lrint,
|
||||
[
|
||||
lrint_save_CFLAGS=$CFLAGS
|
||||
-CFLAGS="-O2 -lm"
|
||||
+lrint_save_LIBS=$LIBS
|
||||
+CFLAGS="$CFLAGS -O2"
|
||||
+LIBS="$LIBS -lm"
|
||||
AC_TRY_LINK([
|
||||
#define _ISOC9X_SOURCE 1
|
||||
#define _ISOC99_SOURCE 1
|
||||
@@ -57,6 +59,7 @@ AC_TRY_LINK([
|
||||
], if (!lrint(3.14159)) lrint(2.7183);, ac_cv_c99_lrint=yes, ac_cv_c99_lrint=no)
|
||||
|
||||
CFLAGS=$lrint_save_CFLAGS
|
||||
+LIBS=$lrint_save_LIBS
|
||||
|
||||
])
|
||||
|
||||
Index: gavl-1.4.0/configure.ac
|
||||
===================================================================
|
||||
--- gavl-1.4.0.orig/configure.ac
|
||||
+++ gavl-1.4.0/configure.ac
|
||||
@@ -129,6 +129,7 @@ fi
|
||||
dnl
|
||||
dnl Check for library functions
|
||||
dnl
|
||||
+AC_CHECK_FUNC(m,sinf)
|
||||
|
||||
AC_CHECK_FUNCS([memalign])
|
||||
AC_CHECK_FUNCS([sched_setaffinity])
|
||||
Index: gavl-1.4.0/src/Makefile.am
|
||||
===================================================================
|
||||
--- gavl-1.4.0.orig/src/Makefile.am
|
||||
+++ gavl-1.4.0/src/Makefile.am
|
||||
@@ -30,7 +30,7 @@ benchmark_LDADD = ../gavl/libgavl.la @RT
|
||||
|
||||
|
||||
volume_test_SOURCES = volume_test.c
|
||||
-volume_test_LDADD = ../gavl/libgavl.la
|
||||
+volume_test_LDADD = ../gavl/libgavl.la -lm
|
||||
|
||||
dump_frame_table_SOURCES = dump_frame_table.c
|
||||
dump_frame_table_LDADD = ../gavl/libgavl.la
|
||||
Index: gavl-1.4.0/src/Makefile.in
|
||||
===================================================================
|
||||
--- gavl-1.4.0.orig/src/Makefile.in
|
||||
+++ gavl-1.4.0/src/Makefile.in
|
||||
@@ -282,7 +282,7 @@ pixelformat_penalty_LDADD = ../gavl/libg
|
||||
benchmark_SOURCES = benchmark.c
|
||||
benchmark_LDADD = ../gavl/libgavl.la @RT_LIBS@
|
||||
volume_test_SOURCES = volume_test.c
|
||||
-volume_test_LDADD = ../gavl/libgavl.la
|
||||
+volume_test_LDADD = ../gavl/libgavl.la -lm
|
||||
dump_frame_table_SOURCES = dump_frame_table.c
|
||||
dump_frame_table_LDADD = ../gavl/libgavl.la
|
||||
colorspace_test_SOURCES = colorspace_test.c
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 27 11:53:44 UTC 2012 - meissner@suse.com
|
||||
|
||||
- fixed the -lm detection to actually work in --as-needed
|
||||
scenarios
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 15 16:20:54 UTC 2012 - reddwarf@opensuse.org
|
||||
|
||||
|
@ -26,6 +26,8 @@ License: GPL-3.0+
|
||||
Group: System/Libraries
|
||||
Url: http://gmerlin.sourceforge.net/
|
||||
Source0: http://sourceforge.net/projects/gmerlin/files/gavl/%{version}/gavl-%{version}.tar.gz
|
||||
Patch0: gavl-autoconf.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: pkg-config
|
||||
|
||||
@ -72,8 +74,10 @@ blending etc).
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
autoconf
|
||||
%configure --docdir=%{_docdir}/%{name} --without-cpuflags
|
||||
make %{?_smp_mflags}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user