Added
Link Here
|
1 |
--- ext/extconf.rb.orig 2019-10-04 18:08:34 UTC |
2 |
+++ ext/extconf.rb |
3 |
@@ -19,18 +19,6 @@ if enable_config('static-stdlib', false) |
4 |
$LDFLAGS << ' -static-libgcc -static-libstdc++' |
5 |
end |
6 |
|
7 |
-# Set to false when building binary gems |
8 |
-if enable_config('march-tune-native', true) |
9 |
- $CFLAGS << ' -march=native -mtune=native' |
10 |
- $CXXFLAGS << ' -march=native -mtune=native' |
11 |
-end |
12 |
- |
13 |
-if enable_config('lto', true) |
14 |
- $CFLAGS << ' -flto' |
15 |
- $CXXFLAGS << ' -flto' |
16 |
- $LDFLAGS << ' -flto' |
17 |
-end |
18 |
- |
19 |
# Disable noisy compilation warnings. |
20 |
$warnflags = '' |
21 |
$CFLAGS.gsub!(/[\s+](-ansi|-std=[^\s]+)/, '') |