From 485f05ee260c867602f09b93dfee0c7d93ce7ca34f8aee7ff74c5d4f9887bf07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Tue, 20 Mar 2012 12:39:06 +0000 Subject: [PATCH 01/13] - Target i586-linux for 32bit builds OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=117 --- llvm.changes | 5 +++++ llvm.spec | 14 ++++++++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/llvm.changes b/llvm.changes index 12d792c..b8adf08 100644 --- a/llvm.changes +++ b/llvm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Mar 20 12:40:27 UTC 2012 - idonmez@suse.com + +- Target i586-linux for 32bit builds + ------------------------------------------------------------------- Tue Dec 27 21:33:48 UTC 2011 - idonmez@suse.com diff --git a/llvm.spec b/llvm.spec index 374de61..3071b9f 100644 --- a/llvm.spec +++ b/llvm.spec @@ -1,7 +1,7 @@ # # spec file for package llvm # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + %define _revision 145598 %define _release_version 3.0 %define _supported_archs "ARM;X86" @@ -112,8 +113,8 @@ This package contains the clang (C language) frontend for LLVM. Summary: CLANG frontend for LLVM (devel package) Group: Development/Languages/Other -Requires: llvm-devel = %{version} Requires: clang = %{version} +Requires: llvm-devel = %{version} %{py_requires} %description clang-devel @@ -156,6 +157,9 @@ pushd stage1 --enable-optimized \ --disable-assertions \ --with-optimize-option="-O0" \ +%ifarch x86 + --host=i586-linux \ +%endif --enable-targets=host make %{?_smp_mflags} @@ -168,6 +172,9 @@ export CXX=$TOPLEVEL/stage1/Release/bin/clang++ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_BUILD_TYPE=Release \ +%ifarch x86 + -DLLVM_TARGET_ARCH=i586-linux +%endif -DLLVM_TARGETS_TO_BUILD=%{_supported_archs} \ .. make %{?_smp_mflags} @@ -187,6 +194,9 @@ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DLLVM_ENABLE_TIMESTAMPS=FALSE \ -DLLVM_TARGETS_TO_BUILD=%{_supported_archs} \ -DCLANG_VENDOR="SUSE Linux" \ +%ifarch x86 + -DLLVM_TARGET_ARCH=i586-linux \ +%endif %if "%{_lib}" == "lib64" -DLLVM_LIBDIR_SUFFIX=64 \ %endif From 98018c7b561784fb4ad7e1808d36844d81326f56f2eef906545678567e4ef1c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Tue, 20 Mar 2012 22:16:09 +0000 Subject: [PATCH 02/13] Always set target OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=118 --- llvm.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm.spec b/llvm.spec index 3071b9f..aba9381 100644 --- a/llvm.spec +++ b/llvm.spec @@ -158,7 +158,7 @@ pushd stage1 --disable-assertions \ --with-optimize-option="-O0" \ %ifarch x86 - --host=i586-linux \ + --target=i586-linux \ %endif --enable-targets=host @@ -173,7 +173,7 @@ export CXX=$TOPLEVEL/stage1/Release/bin/clang++ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ -DCMAKE_BUILD_TYPE=Release \ %ifarch x86 - -DLLVM_TARGET_ARCH=i586-linux + -DLLVM_TARGET_ARCH=i586-linux \ %endif -DLLVM_TARGETS_TO_BUILD=%{_supported_archs} \ .. From 0cb5aad5283398c63550ebd45d73a075c5e8b7cf3f9550cdf2475135ab453280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 21 Mar 2012 14:01:15 +0000 Subject: [PATCH 03/13] - OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=119 --- clang-cmake-lib.patch | 11 ------- default-to-i586.patch | 13 ++++++++ llvm.spec | 77 +++++++++++++++---------------------------- 3 files changed, 40 insertions(+), 61 deletions(-) delete mode 100644 clang-cmake-lib.patch create mode 100644 default-to-i586.patch diff --git a/clang-cmake-lib.patch b/clang-cmake-lib.patch deleted file mode 100644 index 6f98ade..0000000 --- a/clang-cmake-lib.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- tools/clang/tools/libclang/CMakeLists.txt (revision 132071) -+++ tools/clang/tools/libclang/CMakeLists.txt (working copy) -@@ -33,7 +33,7 @@ - - set_target_properties(libclang - PROPERTIES -- OUTPUT_NAME "libclang" -+ OUTPUT_NAME "clang" - VERSION ${LIBCLANG_LIBRARY_VERSION} - DEFINE_SYMBOL _CINDEX_LIB_) - diff --git a/default-to-i586.patch b/default-to-i586.patch new file mode 100644 index 0000000..88ace86 --- /dev/null +++ b/default-to-i586.patch @@ -0,0 +1,13 @@ +Index: llvm/tools/clang/lib/Driver/Tools.cpp +=================================================================== +--- llvm.orig/tools/clang/lib/Driver/Tools.cpp ++++ llvm/tools/clang/lib/Driver/Tools.cpp +@@ -897,7 +897,7 @@ void Clang::AddX86TargetArgs(const ArgLi + if (getToolChain().getArch() == llvm::Triple::x86_64) + CPUName = "x86-64"; + else if (getToolChain().getArch() == llvm::Triple::x86) +- CPUName = "pentium4"; ++ CPUName = "i586"; + } + } + diff --git a/llvm.spec b/llvm.spec index aba9381..de81522 100644 --- a/llvm.spec +++ b/llvm.spec @@ -18,7 +18,7 @@ %define _revision 145598 %define _release_version 3.0 -%define _supported_archs "ARM;X86" +%define _supported_archs "arm,x86" Name: llvm Version: 3.0 @@ -31,8 +31,6 @@ Source0: %{name}-%{version}.tar.bz2 Source100: %{name}-rpmlintrc # PATCH-FIX-OPENSUSE set-revision.patch idoenmez@suse.de -- Allow us to set revision Patch1: set-revision.patch -# PATCH-FIX-OPENSUSE set-revision.patch idoenmez@suse.de -- Use correct lib prefix -Patch2: clang-cmake-lib.patch # PATCH-FIX-OPENSUSE assume-opensuse.patch idoenmez@suse.de -- Always enable openSUSE/SUSE features Patch3: assume-opensuse.patch # PATCH-FIX-UPSTREAM clang-glibc2.14.patch idoenmez@suse.de -- Support glibc 2.14 headers @@ -41,6 +39,8 @@ Patch4: clang-glibc2.14.patch Patch5: clang-disable-ada-extension.patch # PATCH-FIX-UPSTREAM http://llvm.org/viewvc/llvm-project?view=rev&revision=147295 Patch6: clang-pr11642.patch +# PATCH-FIX-OPENSUSE default-to-i586.patch -- Use i586 as default target for 32bit +Patch7: default-to-i586.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake @@ -49,7 +49,6 @@ BuildRequires: binutils-devel >= 2.21.90 %endif BuildRequires: bison BuildRequires: chrpath -BuildRequires: cmake BuildRequires: dejagnu BuildRequires: fdupes BuildRequires: flex @@ -133,13 +132,13 @@ This package contains vim plugins for LLVM like syntax highlighting. %prep %setup -q %patch1 -%patch2 %patch3 cd tools/clang %patch4 %patch6 cd ../.. %patch5 -p1 +%patch7 -p1 sed -i s,SVN_REVISION,\"%{_revision}\",g tools/clang/lib/Basic/Version.cpp @@ -151,16 +150,11 @@ TOPLEVEL=$PWD mkdir stage1 stage2 stage3 pushd stage1 -# Idiot cmake doesn't let me select my own optimization level here -# hence we use configure, this needed to workaround a gcc 4.5 bug ../configure \ - --enable-optimized \ - --disable-assertions \ - --with-optimize-option="-O0" \ -%ifarch x86 - --target=i586-linux \ -%endif - --enable-targets=host + --enable-optimized \ + --disable-assertions \ + --with-optimize-option="-O0" \ + --enable-targets=host make %{?_smp_mflags} @@ -170,13 +164,11 @@ pushd stage2 export CC=$TOPLEVEL/stage1/Release/bin/clang export CXX=$TOPLEVEL/stage1/Release/bin/clang++ -cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ - -DCMAKE_BUILD_TYPE=Release \ -%ifarch x86 - -DLLVM_TARGET_ARCH=i586-linux \ -%endif - -DLLVM_TARGETS_TO_BUILD=%{_supported_archs} \ - .. +../configure \ + --enable-optimized \ + --disable-assertions \ + --enable-targets=host + make %{?_smp_mflags} popd @@ -184,33 +176,27 @@ pushd stage3 # Needed to make clang resource dir working inside build tree ln -s lib lib64 -export CC=$TOPLEVEL/stage2/bin/clang -export CXX=$TOPLEVEL/stage2/bin/clang++ +export CC=$TOPLEVEL/stage2/Release/bin/clang +export CXX=$TOPLEVEL/stage2/Release/bin/clang++ -cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ - -DCMAKE_BUILD_TYPE=Release \ - -DLLVM_ENABLE_ASSERTIONS=FALSE \ - -DLLVM_ENABLE_PIC=TRUE \ - -DLLVM_ENABLE_TIMESTAMPS=FALSE \ - -DLLVM_TARGETS_TO_BUILD=%{_supported_archs} \ - -DCLANG_VENDOR="SUSE Linux" \ -%ifarch x86 - -DLLVM_TARGET_ARCH=i586-linux \ -%endif -%if "%{_lib}" == "lib64" - -DLLVM_LIBDIR_SUFFIX=64 \ -%endif +../configure \ + --enable-optimized \ + --disable-assertions \ + --enable-pic \ + --disable-timestamps \ + --enable-targets=%{_supported_archs} \ %if 0%{?suse_version} >= 1220 - -DLLVM_BINUTILS_INCDIR=/usr/include \ + --with-binutils-include=/usr/include \ %endif - -DCLANG_RESOURCE_DIR="../%{_lib}/clang/%{_release_version}" \ - .. -make %{?_smp_mflags} + --with-clang-resource-dir="../%{_lib}/clang/%{_release_version}" + +make %{?_smp_mflags} REQUIRES_RTTI=1 %check cd stage3 make check -make clang-test +cd tools/clang +make test %install cd stage3 @@ -282,15 +268,6 @@ install -m 755 -d %{buildroot}%{_datadir}/vim/site/syntax/ install -m 644 utils/vim/*.vim %{buildroot}%{_datadir}/vim/site/syntax/ mv utils/vim/README utils/vim/README.vim -# Create man pages because cmake buildsystem doesn't do for us -install -m 755 -d %{buildroot}%{_mandir}/man1 -# tblgen is not installed anymore. -rm docs/CommandGuide/tblgen.pod -for i in docs/CommandGuide/*.pod tools/clang/docs/tools/*.pod; do - page=`echo $i|awk -F"/" '{print $(NF)}'|sed s,.pod,,` && - pod2man -s1 $i %{buildroot}%{_mandir}/man1/$page.1; -done - # Remove gtest library rm -f %{buildroot}%{_libdir}/*gtest* From ace221c8312bf310fbbc16c17e64e154c4d249025367e0bbf62b3800cca46b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 21 Mar 2012 14:34:50 +0000 Subject: [PATCH 04/13] Whoops OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=120 --- llvm.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/llvm.spec b/llvm.spec index de81522..f1579f1 100644 --- a/llvm.spec +++ b/llvm.spec @@ -180,6 +180,8 @@ export CC=$TOPLEVEL/stage2/Release/bin/clang export CXX=$TOPLEVEL/stage2/Release/bin/clang++ ../configure \ + --prefix=%{_prefix} \ + --libdir=%{_libdir} \ --enable-optimized \ --disable-assertions \ --enable-pic \ From b156ad17a252c8bed009f0cbd77b87983b31658934826c9011b23a9bbc587c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 21 Mar 2012 15:15:58 +0000 Subject: [PATCH 05/13] Test fix OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=121 --- llvm.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm.spec b/llvm.spec index f1579f1..8cc8e15 100644 --- a/llvm.spec +++ b/llvm.spec @@ -140,6 +140,9 @@ cd ../.. %patch5 -p1 %patch7 -p1 +# We hardcode i586 +rm tools/clang/test/Driver/x86_features.c + sed -i s,SVN_REVISION,\"%{_revision}\",g tools/clang/lib/Basic/Version.cpp # Nasty hardcoded path From b1c5f830c7da255996993fb121b1bd4be21b930f92d7c72a606b87920f357161 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 21 Mar 2012 15:56:25 +0000 Subject: [PATCH 06/13] Filelist fix OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=122 --- llvm.spec | 2 -- 1 file changed, 2 deletions(-) diff --git a/llvm.spec b/llvm.spec index 8cc8e15..1677539 100644 --- a/llvm.spec +++ b/llvm.spec @@ -300,7 +300,6 @@ rm -f %{buildroot}%{_libdir}/libEnhancedDisassembly.* %defattr(-,root,root) %doc *.TXT *.txt %{_bindir}/bugpoint -%{_bindir}/diagtool %{_bindir}/llc %{_bindir}/lli %{_bindir}/macho-dump @@ -314,7 +313,6 @@ rm -f %{buildroot}%{_libdir}/libEnhancedDisassembly.* %exclude %{_mandir}/man1/%{name}-config.1%{ext_man} %{_mandir}/man1/llvm*.1%{ext_man} %{_mandir}/man1/opt.1%{ext_man} -%{_mandir}/man1/FileCheck.1%{ext_man} %files clang %defattr(-,root,root) From fbdc1e32e65b7d4b4162c8fb9a63dafc025962d58abd77d0913a124bd87c722c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 21 Mar 2012 16:39:54 +0000 Subject: [PATCH 07/13] More filelist fixes OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=123 --- llvm.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/llvm.spec b/llvm.spec index 1677539..e7a2f5c 100644 --- a/llvm.spec +++ b/llvm.spec @@ -213,6 +213,10 @@ cd .. sed -i s,ABS_RUN_DIR/lib,ABS_RUN_DIR/lib64, %{buildroot}/%{_bindir}/llvm-config %endif +# Docs +mv %{buildroot}/usr/docs/llvm/html %{buildroot}/usr/share/doc/packages/llvm-doc/ +rm -rf %{buildroot}/usr/docs/ + # cleanup file %{buildroot}/%{_bindir}/* | awk -F: '$2~/ELF/{print $1}' | xargs -r chrpath -d file %{buildroot}/%{_libdir}/%{name}/*.so | awk -F: '$2~/ELF/{print $1}' | xargs -r chrpath -d @@ -377,8 +381,6 @@ rm -f %{buildroot}%{_libdir}/libEnhancedDisassembly.* %files devel %defattr(-,root,root,-) %{_bindir}/%{name}-config -%dir %{_datadir}/llvm/ -%{_datadir}/llvm/* %doc %{_mandir}/man1/%{name}-config.1%{ext_man} %{_includedir}/%{name}/ %{_includedir}/%{name}-c/ From 4b7676e4f60df345007b9d15fba8d3b7a89af24e57e0b5e06928765c59dea7ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 21 Mar 2012 17:18:35 +0000 Subject: [PATCH 08/13] Filelist fix OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=124 --- llvm.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm.spec b/llvm.spec index e7a2f5c..766a323 100644 --- a/llvm.spec +++ b/llvm.spec @@ -214,6 +214,7 @@ sed -i s,ABS_RUN_DIR/lib,ABS_RUN_DIR/lib64, %{buildroot}/%{_bindir}/llvm-config %endif # Docs +mkdir -p %{buildroot}/usr/share/doc/packages/llvm-doc/ mv %{buildroot}/usr/docs/llvm/html %{buildroot}/usr/share/doc/packages/llvm-doc/ rm -rf %{buildroot}/usr/docs/ From b35d2400b06fed4d9fd11c5eb0f50695f48d576b4950c497e1657b9ce27de72e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 21 Mar 2012 17:58:13 +0000 Subject: [PATCH 09/13] Fix OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=125 --- llvm.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm.spec b/llvm.spec index 766a323..5b08307 100644 --- a/llvm.spec +++ b/llvm.spec @@ -335,7 +335,7 @@ rm -f %{buildroot}%{_libdir}/libEnhancedDisassembly.* %{py_sitedir}/Resources %{_datadir}/clang %{_mandir}/man1/clang.1.gz -%{_libdir}/libclang.so.* +%{_libdir}/libclang.so %{_libdir}/libLTO.so %{_libdir}/*profile*.a %if 0%{?suse_version} >= 1220 @@ -375,7 +375,6 @@ rm -f %{buildroot}%{_libdir}/libEnhancedDisassembly.* %{_includedir}/clang %{_includedir}/clang-c %{_libdir}/libLTO.a -%{_libdir}/libclang.so %{_libdir}/libclang*.a %{_libdir}/*profile*.so From cbd268e666c6f7f316417fa2587fe130d2d585770a4a791cacb8e0999b9bf814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 21 Mar 2012 18:38:28 +0000 Subject: [PATCH 10/13] Fix OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=126 --- llvm.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm.spec b/llvm.spec index 5b08307..955cc43 100644 --- a/llvm.spec +++ b/llvm.spec @@ -313,6 +313,7 @@ rm -f %{buildroot}%{_libdir}/libEnhancedDisassembly.* %{_bindir}/opt %{_mandir}/man1/bugpoint.1%{ext_man} %exclude %{_mandir}/man1/lit.1%{ext_man} +%{_mandir}/man1/tblgen.1%{ext_man} %{_mandir}/man1/llc.1%{ext_man} %{_mandir}/man1/lli.1%{ext_man} %exclude %{_mandir}/man1/%{name}-config.1%{ext_man} From def76554485605c3aa904caee742dae25998df5d7addec22706fb6fb00b472ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 21 Mar 2012 19:19:14 +0000 Subject: [PATCH 11/13] Fix OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=127 --- llvm.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm.spec b/llvm.spec index 955cc43..99a49d3 100644 --- a/llvm.spec +++ b/llvm.spec @@ -221,8 +221,8 @@ rm -rf %{buildroot}/usr/docs/ # cleanup file %{buildroot}/%{_bindir}/* | awk -F: '$2~/ELF/{print $1}' | xargs -r chrpath -d file %{buildroot}/%{_libdir}/%{name}/*.so | awk -F: '$2~/ELF/{print $1}' | xargs -r chrpath -d - find %{buildroot}%{_includedir}/clang -name '*.tmp' -exec rm {} + +chmod -x %{buildroot}/%{_libdir}/*.a for file in `find examples -type f`; do install -d %{buildroot}%{_docdir}/%{name}-doc/`dirname $file` From a7c336f0e62c7e5d152e0f8c9a74dba811ba9d5056a02a1f9cf5cedc7e7262b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Wed, 21 Mar 2012 23:56:05 +0000 Subject: [PATCH 12/13] Fix 64bit builds OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=128 --- llvm.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm.spec b/llvm.spec index 99a49d3..1f3dbf7 100644 --- a/llvm.spec +++ b/llvm.spec @@ -211,6 +211,7 @@ cd .. # Fixup libdir %if "%{_lib}" == "lib64" sed -i s,ABS_RUN_DIR/lib,ABS_RUN_DIR/lib64, %{buildroot}/%{_bindir}/llvm-config +mv %{buildroot}%{_prefix}/lib %{buildroot}%{_prefix}/lib64 %endif # Docs From cb4e7901f600b3489fd444dde429ce2e91802c64170ef9774301b268514fea4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Thu, 22 Mar 2012 08:07:45 +0000 Subject: [PATCH 13/13] Fix 64bit builds OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=129 --- llvm.spec | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/llvm.spec b/llvm.spec index 1f3dbf7..c076605 100644 --- a/llvm.spec +++ b/llvm.spec @@ -176,15 +176,16 @@ make %{?_smp_mflags} popd pushd stage3 -# Needed to make clang resource dir working inside build tree -ln -s lib lib64 + +# autotools ignore --libdir +mkdir Release +ln -s lib Release/lib64 export CC=$TOPLEVEL/stage2/Release/bin/clang export CXX=$TOPLEVEL/stage2/Release/bin/clang++ ../configure \ --prefix=%{_prefix} \ - --libdir=%{_libdir} \ --enable-optimized \ --disable-assertions \ --enable-pic \