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