Lines 210-218
Link Here
|
210 |
mozconfig_use_enable gstreamer |
210 |
mozconfig_use_enable gstreamer |
211 |
mozconfig_use_enable system-sqlite |
211 |
mozconfig_use_enable system-sqlite |
212 |
mozconfig_use_with system-jpeg |
212 |
mozconfig_use_with system-jpeg |
213 |
# Feature is know to cause problems on hardened |
213 |
|
214 |
mozconfig_use_enable jit methodjit |
214 |
# compiler-dependent settings |
215 |
mozconfig_use_enable jit tracejit |
215 |
if [[ $(tc-getCC) =~ clang ]]; then |
|
|
216 |
mozconfig_annotate 'from ebuild, CC=clang detected' --enable-address-sanitizer |
217 |
mozconfig_annotate 'from ebuild, CC=clang detected' --enable-llvm-hacks |
218 |
|
219 |
# --enable-methodjit causes clang build to segfault (see bug #462608) |
220 |
# --enable-llvm-hacks does not fix it, so make sure it is disabled |
221 |
mozconfig_annotate 'from ebuild, CC=clang detected' --disable-methodjit |
222 |
mozconfig_use_enable jit tracejit |
223 |
else |
224 |
# Feature is know to cause problems on hardened |
225 |
mozconfig_use_enable jit methodjit |
226 |
mozconfig_use_enable jit tracejit |
227 |
|
228 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
229 |
append-cxxflags -fno-stack-protector |
230 |
elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]]; then |
231 |
if use amd64 || use x86; then |
232 |
append-flags -mno-avx |
233 |
fi |
234 |
fi |
235 |
fi |
236 |
|
237 |
# support EXTRA_ECONF, maybe this should be in mozcoreconf-2.eclass .. |
238 |
for eeopt in $EXTRA_ECONF; do |
239 |
mozconfig_annotate 'from ebuild, passed using EXTRA_ECONF' $eeopt |
240 |
done |
216 |
# Allow for a proper pgo build |
241 |
# Allow for a proper pgo build |
217 |
if use pgo; then |
242 |
if use pgo; then |
Lines 221-234
Link Here
|
221 |
# Finalize and report settings |
246 |
# Finalize and report settings |
222 |
mozconfig_final |
247 |
mozconfig_final |
223 |
|
|
|
224 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
225 |
append-cxxflags -fno-stack-protector |
226 |
elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]]; then |
227 |
if use amd64 || use x86; then |
228 |
append-flags -mno-avx |
229 |
fi |
230 |
fi |
231 |
} |
248 |
} |
232 |
src_compile() { |
249 |
src_compile() { |