removes GCC-specific flags from CFLAGS s11express-2010-11
authorGuido Berhoerster <guido+openindiana@berhoerster.name>
Thu, 30 Sep 2010 12:50:20 +0200
branchs11express-2010-11
changeset 22093 947de62650c2
parent 22092 b922076df585
child 22094 e9fb9ffff02c
removes GCC-specific flags from CFLAGS
base-specs/speex.spec
patches/openindiana-speex-1000-cflags.diff
--- a/base-specs/speex.spec	Thu Sep 30 12:50:19 2010 +0200
+++ b/base-specs/speex.spec	Thu Sep 30 12:50:20 2010 +0200
@@ -20,6 +20,7 @@
 Source:       http://downloads.us.xiph.org/releases/%{name}/%{name}-%{tarball_version}.tar.gz
 # date:2009-02-19 type:branding owner:mattman
 Patch1:       speex-01-manpages.diff
+Patch1000:    openindiana-speex-1000-cflags.diff
 URL:          http://speex.org/
 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
 Docdir:       %{_docdir}/%{name}
@@ -42,6 +43,7 @@
 %prep
 %setup -q -n %{name}-%{tarball_version}
 %patch1 -p1
+%patch1000 -p1
 
 %build
 %ifos linux
@@ -55,6 +57,8 @@
   CPUS=1
 fi
 
+autoconf
+
 export LDFLAGS="%_ldflags"
 export CFLAGS="%optflags"
 ./configure --enable-shared     \
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/openindiana-speex-1000-cflags.diff	Thu Sep 30 12:50:20 2010 +0200
@@ -0,0 +1,11 @@
+diff -ur speex-1.2rc1.orig/configure.ac speex-1.2rc1/configure.ac
+--- speex-1.2rc1.orig/configure.ac	2008-07-21 04:17:08.000000000 +0200
++++ speex-1.2rc1/configure.ac	2010-09-17 10:31:14.000000000 +0200
+@@ -90,7 +90,6 @@
+ AC_MSG_RESULT($has_sse)  
+ 
+ SAVE_CFLAGS="$CFLAGS"
+-CFLAGS="$CFLAGS -fvisibility=hidden"
+ AC_MSG_CHECKING(for ELF visibility)
+ AC_COMPILE_IFELSE([
+ AC_LANG_PROGRAM([[