author | Guido Berhoerster <gber@openindiana.org> |
Fri, 10 Jun 2011 11:43:49 +0200 | |
branch | oi_151 |
changeset 32 | ff9e038c0359 |
parent 2 | ca4e4a951c48 |
permissions | -rw-r--r-- |
0 | 1 |
# HG changeset patch |
2
ca4e4a951c48
changes for oi_148
Guido Berhoerster <guido+openindiana@berhoerster.name>
parents:
0
diff
changeset
|
2 |
# User Guido Berhoerster <[email protected]> |
ca4e4a951c48
changes for oi_148
Guido Berhoerster <guido+openindiana@berhoerster.name>
parents:
0
diff
changeset
|
3 |
# Date 1285843820 -7200 |
ca4e4a951c48
changes for oi_148
Guido Berhoerster <guido+openindiana@berhoerster.name>
parents:
0
diff
changeset
|
4 |
# Branch gnome-2-30 |
ca4e4a951c48
changes for oi_148
Guido Berhoerster <guido+openindiana@berhoerster.name>
parents:
0
diff
changeset
|
5 |
# Node ID f5e6bbbff238d244b6695443f4fb81e5c0eb26bc |
ca4e4a951c48
changes for oi_148
Guido Berhoerster <guido+openindiana@berhoerster.name>
parents:
0
diff
changeset
|
6 |
# Parent ea6bb58176d00bea3b3b21fec6dab6d9d886e746 |
0 | 7 |
removes GCC-specific flags from CFLAGS |
8 |
||
9 |
diff --git a/base-specs/speex.spec b/base-specs/speex.spec |
|
10 |
--- a/base-specs/speex.spec |
|
11 |
+++ b/base-specs/speex.spec |
|
12 |
@@ -20,6 +20,7 @@ |
|
13 |
Source: http://downloads.us.xiph.org/releases/%{name}/%{name}-%{tarball_version}.tar.gz |
|
14 |
# date:2009-02-19 type:branding owner:mattman |
|
15 |
Patch1: speex-01-manpages.diff |
|
16 |
+Patch1000: openindiana-speex-1000-cflags.diff |
|
17 |
URL: http://speex.org/ |
|
18 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
19 |
Docdir: %{_docdir}/%{name} |
|
20 |
@@ -42,6 +43,7 @@ |
|
21 |
%prep |
|
22 |
%setup -q -n %{name}-%{tarball_version} |
|
23 |
%patch1 -p1 |
|
24 |
+%patch1000 -p1 |
|
25 |
||
26 |
%build |
|
27 |
%ifos linux |
|
28 |
@@ -55,6 +57,8 @@ |
|
29 |
CPUS=1 |
|
30 |
fi |
|
31 |
||
32 |
+autoconf |
|
33 |
+ |
|
34 |
export LDFLAGS="%_ldflags" |
|
35 |
export CFLAGS="%optflags" |
|
36 |
./configure --enable-shared \ |
|
37 |
diff --git a/patches/openindiana-speex-1000-cflags.diff b/patches/openindiana-speex-1000-cflags.diff |
|
38 |
new file mode 100644 |
|
39 |
--- /dev/null |
|
40 |
+++ b/patches/openindiana-speex-1000-cflags.diff |
|
41 |
@@ -0,0 +1,11 @@ |
|
42 |
+diff -ur speex-1.2rc1.orig/configure.ac speex-1.2rc1/configure.ac |
|
43 |
+--- speex-1.2rc1.orig/configure.ac 2008-07-21 04:17:08.000000000 +0200 |
|
44 |
++++ speex-1.2rc1/configure.ac 2010-09-17 10:31:14.000000000 +0200 |
|
45 |
+@@ -90,7 +90,6 @@ |
|
46 |
+ AC_MSG_RESULT($has_sse) |
|
47 |
+ |
|
48 |
+ SAVE_CFLAGS="$CFLAGS" |
|
49 |
+-CFLAGS="$CFLAGS -fvisibility=hidden" |
|
50 |
+ AC_MSG_CHECKING(for ELF visibility) |
|
51 |
+ AC_COMPILE_IFELSE([ |
|
52 |
+ AC_LANG_PROGRAM([[ |