]> git.pld-linux.org Git - packages/glibc.git/blobdiff - glibc.spec
- disable profile subpackage if built with nptl
[packages/glibc.git] / glibc.spec
index dffd784820ca13d509dc118f41f1ee8c3120f95e..5612bfda70943ac2f931aa16b16204d412ec861d 100644 (file)
@@ -10,6 +10,7 @@
 %bcond_without dist_kernel     # for above, allow non-distribution kernel
 %bcond_with    idn             # build with included libidn
 %bcond_with    nptl            # use nptl instead of linuxthreads
+%bcond_without  tls            # do not use tls
 %bcond_without  tests          # do not perform "make test"
 
 #
 %endif
 %endif
 
+%if %{with tls}
+%ifnarch i686 athlon amd64 ia64 s390 s390x alpha alphaev6 sparc sparcv9 ppc ppc64
+%undefine with_tls
+%endif
+%endif
+
 %define        gkh_version     7:2.6.0.3
 Summary:       GNU libc
 Summary(de):   GNU libc
@@ -46,7 +53,7 @@ Summary(tr):  GNU libc
 Summary(uk):   GNU libc ×ÅÒÓ¦§ 2.3
 Name:          glibc
 Version:       2.3.3
-Release:       0.20040101.2%{?with_nptl:+nptl}
+Release:       0.20040101.3%{?with_nptl:+nptl}
 Epoch:         6
 License:       LGPL
 Group:         Libraries
@@ -781,6 +788,7 @@ LDFLAGS=" " ; export LDFLAGS
        --with-tls \
        --disable-profile \
 %else
+       %{?with_tls:--with-tls} \
         --enable-add-ons=linuxthreads \
        --enable-profile \
 %endif
@@ -1245,9 +1253,11 @@ fi
 %{_libdir}/librt.a
 %{_libdir}/libutil.a
 
+%if %{without nptl}
 %files profile
 %defattr(644,root,root,755)
 %{_libdir}/lib*_p.a
+%endif
 
 %files pic
 %defattr(644,root,root,755)
This page took 0.029798 seconds and 4 git commands to generate.