]>
Commit | Line | Data |
---|---|---|
98a7741e | 1 | # |
cad082d6 PG |
2 | # TODO: |
3 | # - SECURITY: http://securitytracker.com/alerts/2004/Aug/1010975.html | |
4 | # | |
98a7741e | 5 | # You can define min_kernel macro by "rpm --define 'min_kernel version'" |
742b2751 | 6 | # default is 2.4.6 |
029d2051 | 7 | # |
b287d865 | 8 | # Conditional build: |
60cb42b4 | 9 | %bcond_with omitfp # build without frame pointer (pass \--enable-omitfp) |
fd1d4127 JB |
10 | %bcond_without memusage # don't build memusage utility |
11 | %bcond_with kernelheaders # use headers from kernel-headers instead of | |
b2327ef2 | 12 | # linux-libc-headers (evil, breakage etc., don't use) |
fd1d4127 | 13 | %bcond_without dist_kernel # for above, allow non-distribution kernel |
5f56f24b | 14 | %bcond_with nptl # use nptl instead of linuxthreads (implies tls) |
87146167 | 15 | %bcond_with tls # use tls |
c9d8e545 | 16 | %bcond_with tests # perform "make test" |
61918272 | 17 | |
b287d865 | 18 | # |
37cd6ebc JB |
19 | # TODO: |
20 | # - localedb-gen man pages(?) | |
4acad1ec | 21 | # - fix what trojan broke while upgreading (getaddrinfo-workaround) |
feca75cc JB |
22 | # - math/{test-fenv,test-tgmath,test-float,test-ifloat}, |
23 | # linuxthreads/tst-cancel8, debug/backtrace-tst(SEGV) fail on alpha | |
76f01b70 | 24 | # |
61918272 | 25 | |
3900e225 | 26 | %{!?min_kernel:%global min_kernel 2.4.6} |
61918272 | 27 | |
28 | %if %{with nptl} | |
dc3eddd2 | 29 | # it seems that nptl uses cmpxchgl (available since i486) on x86 |
dd75ad7c | 30 | %ifarch i486 i586 i686 pentium3 pentium4 athlon amd64 ia64 alpha s390 s390x sparcv9 ppc ppc64 |
76131947 AM |
31 | %if "%{min_kernel}" < "2.6.0" |
32 | %global min_kernel 2.6.0 | |
33 | %endif | |
5f56f24b JB |
34 | # NPTL requires TLS |
35 | %define with_tls 1 | |
61918272 | 36 | %else |
5f56f24b | 37 | %undefine with_nptl |
3900e225 | 38 | %endif |
61918272 | 39 | %endif |
61918272 | 40 | |
f3f771b7 | 41 | %if %{with tls} |
dd75ad7c | 42 | %ifnarch %{ix86} amd64 ia64 alpha s390 s390x sparc sparcv9 ppc ppc64 |
5f56f24b | 43 | %undefine with_tls |
f3f771b7 AM |
44 | %endif |
45 | %endif | |
46 | ||
e24149ab PS |
47 | %ifarch sparc64 |
48 | %undefine with_memusage | |
49 | %endif | |
50 | ||
121eb47e | 51 | %define llh_version 7:2.6.6.0 |
baee199c | 52 | %define _snap 20040722 |
e8c60795 | 53 | |
236a5027 | 54 | Summary: GNU libc |
55 | Summary(de): GNU libc | |
4a04bb32 | 56 | Summary(es): GNU libc |
236a5027 | 57 | Summary(fr): GNU libc |
c5387ad5 | 58 |