- Fix build with no-add-needed OBS-URL: https://build.opensuse.org/request/show/80113 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libvorbis?expand=0&rev=29
49 lines
1.2 KiB
Diff
49 lines
1.2 KiB
Diff
--- test/Makefile.am.orig
|
|
+++ test/Makefile.am
|
|
@@ -10,7 +10,7 @@ check: $(check_PROGRAMS)
|
|
./test$(EXEEXT)
|
|
|
|
test_SOURCES = util.c util.h write_read.c write_read.h test.c
|
|
-test_LDADD = ../lib/libvorbisenc.la ../lib/libvorbis.la @OGG_LIBS@
|
|
+test_LDADD = -lm ../lib/libvorbisenc.la ../lib/libvorbis.la @OGG_LIBS@
|
|
|
|
debug:
|
|
$(MAKE) all CFLAGS="@DEBUG@"
|
|
--- configure.ac.orig
|
|
+++ configure.ac
|
|
@@ -8,13 +8,12 @@ dnl ------------------------------------
|
|
AC_INIT([libvorbis],[1.3.2],[vorbis-dev@xiph.org])
|
|
|
|
AC_CONFIG_SRCDIR([lib/mdct.c])
|
|
-
|
|
+AC_CONFIG_MACRO_DIR([m4])
|
|
AC_CANONICAL_TARGET([])
|
|
|
|
AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION)
|
|
AM_MAINTAINER_MODE
|
|
AM_CONFIG_HEADER([config.h])
|
|
-
|
|
dnl Add parameters for aclocal
|
|
AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
|
|
|
|
@@ -53,7 +52,9 @@ dnl ------------------------------------
|
|
dnl save $CFLAGS since AC_PROG_CC likes to insert "-g -O2"
|
|
dnl if $CFLAGS is blank
|
|
cflags_save="$CFLAGS"
|
|
-AC_PROG_CC
|
|
+AC_PROG_CC_STDC
|
|
+AC_USE_SYSTEM_EXTENSIONS
|
|
+AC_SYS_LARGEFILE
|
|
AC_PROG_CPP
|
|
CFLAGS="$cflags_save"
|
|
|
|
--- Makefile.am.orig
|
|
+++ Makefile.am
|
|
@@ -1,5 +1,6 @@
|
|
## Process this file with automake to produce Makefile.in
|
|
|
|
+ACLOCAL_AMFLAGS = -I m4
|
|
AUTOMAKE_OPTIONS = 1.7 foreign dist-zip dist-bzip2
|
|
|
|
SUBDIRS = m4 include vq lib test doc
|