aboutsummaryrefslogtreecommitdiffstats
path: root/rpmrc.in
blob: 8476c7d857c77e950fa3d849f96beb15c2c00c1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#
# @RPMVENDORDIR@/rpmrc

#############################################################
# Values for RPM_OPT_FLAGS for various platforms

optflags: i386 %{__common_cflags_with_ssp} -fomit-frame-pointer -march=i386 -fasynchronous-unwind-tables
optflags: i486 %{__common_cflags_with_ssp} -fomit-frame-pointer -march=i486 -fasynchronous-unwind-tables
optflags: k6   %{__common_cflags_with_ssp} -fomit-frame-pointer -march=k6 -fasynchronous-unwind-tables
optflags: i586 %{__common_cflags_with_ssp} -fomit-frame-pointer -march=i586 -mtune=generic -fasynchronous-unwind-tables
optflags: i686 %{__common_cflags_with_ssp} -fomit-frame-pointer -march=i686 -fasynchronous-unwind-tables
optflags: athlon %{__common_cflags_with_ssp} -fomit-frame-pointer -march=athlon -fasynchronous-unwind-tables
optflags: pentium3 %{__common_cflags_with_ssp} -fomit-frame-pointer -march=pentium3 -fasynchronous-unwind-tables
optflags: pentium4 %{__common_cflags_with_ssp} -fomit-frame-pointer -march=pentium4 -fasynchronous-unwind-tables

optflags: x86_64 %{__common_cflags_with_ssp} -fasynchronous-unwind-tables
optflags: amd64 %{__common_cflags_with_ssp}
optflags: ia32e %{__common_cflags_with_ssp}

optflags: ia64 %{__common_cflags}
  
  # XXX Please note that -mieee has been added in rpm-3.0.5.
optflags: alpha %{__common_cflags} -mieee -mcpu=ev5
optflags: alphaev5 %{__common_cflags} -mieee -mcpu=ev5
optflags: alphaev56 %{__common_cflags} -mieee -mcpu=ev56
optflags: alphapca56 %{__common_cflags} -mieee -mcpu=pca56
optflags: alphaev6 %{__common_cflags} -mieee -mcpu=ev6
optflags: alphaev67 %{__common_cflags} -mieee -mcpu=ev67

optflags: sparc %{__common_cflags} -m32 -mtune=ultrasparc
optflags: sparcv9 %{__common_cflags} -m32 -mcpu=ultrasparc
optflags: sparc64 %{__common_cflags} -m64 -mcpu=ultrasparc

optflags: m68k %{__common_cflags} -fomit-frame-pointer

optflags: ppc %{__common_cflags_with_ssp} -fsigned-char -mcpu=750 -mtune=7450
optflags: ppciseries %{__common_cflags_with_ssp} -fsigned-char
optflags: ppcpseries %{__common_cflags_with_ssp} -fsigned-char
optflags: ppc32 %{__common_cflags_with_ssp} -m32 -fsigned-char -mcpu=power4 -mtune=cell
optflags: ppc64 %{__common_cflags_with_ssp} -m64 -fsigned-char -mcpu=power4 -mtune=cell

optflags: parisc %{__common_cflags} -mpa-risc-1-0
optflags: hppa1.0 %{__common_cflags} -mpa-risc-1-0
optflags: hppa1.1 %{__common_cflags} -mpa-risc-1-0
optflags: hppa1.2 %{__common_cflags} -mpa-risc-1-0
optflags: hppa2.0 %{__common_cflags} -mpa-risc-1-0

optflags: mips %{__common_cflags} -march=mips3
optflags: mipsel %{__common_cflags} -march=mips3
optflags: mips32el %{__common_cflags} -march=mips3 -mabi=n32
optflags: mips64el %{__common_cflags} -march=mips3 -mabi=64

optflags: armv3l %{__common_cflags} -march=armv3
optflags: armv4b %{__common_cflags} -march=armv4
optflags: armv4l %{__common_cflags} -march=armv4
optflags: armv4t %{__common_cflags} -march=armv4t
optflags: armv5t %{__common_cflags} -march=armv5t
# Cortex A8
optflags: armv7 %{__common_cflags} -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp

optflags: armv4tl %{__common_cflags} -march=armv4t
optflags: armv5tl %{__common_cflags} -march=armv5t
# Cortex A8
optflags: armv7l %{__common_cflags} -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp

optflags: armv7hl %{__common_cflags} -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16
optflags: armv7hnl %{__common_cflags} -march=armv7-a -mfloat-abi=hard -mfpu=neon

optflags: aarch64 %{__common_cflags_with_ssp} -fasynchronous-unwind-tables

optflags: atarist %{__common_cflags} -fomit-frame-pointer
optflags: atariste %{__common_cflags} -fomit-frame-pointer
optflags: ataritt %{__common_cflags} -fomit-frame-pointer
optflags: falcon %{__common_cflags} -fomit-frame-pointer
optflags: atariclone %{__common_cflags} -fomit-frame-pointer
optflags: milan %{__common_cflags} -fomit-frame-pointer
optflags: hades %{__common_cflags} -fomit-frame-pointer

optflags: s390 %{__common_cflags_with_ssp}
optflags: s390x %{__common_cflags_with_ssp}

#############################################################
# Canonical arch names and numbers

arch_canon:	sparc64:sparc64 10
arch_canon:	sun4u:	sparc64 10

arch_canon:	x86_64:	x86_64	19

#############################################################
# Canonical OS names and numbers

#############################################################
# For a given uname().machine, the default build arch

buildarchtranslate: athlon: i586
buildarchtranslate: pentium4: i586
buildarchtranslate: pentium3: i586
buildarchtranslate: i686: i586
buildarchtranslate: k6: i586
buildarchtranslate: i586: i586
buildarchtranslate: i486: i486
buildarchtranslate: i386: i386
buildarchtranslate: i386: i386

buildarchtranslate: armv5tel: armv5tl
buildarchtranslate: armv5t: armv5t
buildarchtranslate: armv7: armv5t
buildarchtranslate: armv7l: @ARMV7CANONTARGETCPU@
buildarchtranslate: armv7hl: armv7hl
buildarchtranslate: armv7hnl: armv7hl
buildarchtranslate: armv8l: @ARMV8CANONTARGETCPU@
buildarchtranslate: armv8hl: @ARMV8CANONTARGETCPU@
buildarchtranslate: armv8hnl: @ARMV8CANONTARGETCPU@
buildarchtranslate: armv8hcnl: @ARMV8CANONTARGETCPU@

#############################################################
# Architecture compatibility

arch_compat: k6: i586

arch_compat: osfmach3_i686: i686 osfmach3_i586
arch_compat: osfmach3_i586: i586 osfmach3_i486
arch_compat: osfmach3_i486: i486 osfmach3_i386
arch_compat: osfmach3_i386: i486

arch_compat: armv8l: armv7hl

buildarch_compat: k6: i486

macrofiles: @RPMLIBDIR@/macros:@RPMLIBDIR@/%{_target}/macros:@RPMVENDORDIR@/macros:@RPMVENDORDIR@/%{_target}/macros:@RPMSYSCONFDIR@/macros:@RPMSYSCONFDIR@/%{_target}/macros:@RPMSYSCONFDIR@/macros.cdb:@RPMSYSCONFDIR@/macros.d/*.macros:~/.rpmmacros