MFH: r515060

Disable optimization

- Bump PORTREVISION for package change

PR:		241063
Submitted by:	swills

Approved by:	ports-secteam (blanket)
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2019-10-22 16:13:23 +00:00
parent a1a94d4e71
commit 8e88f5f446
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2019Q4/; revision=515204
2 changed files with 18 additions and 7 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= sassc
PORTVERSION= 2.2.1
PORTREVISION= 1
CATEGORIES= textproc rubygems
MASTER_SITES= RG

View File

@ -1,11 +1,21 @@
--- ext/extconf.rb.orig 2019-09-07 21:32:44 UTC
--- ext/extconf.rb.orig 2019-10-20 13:40:05 UTC
+++ ext/extconf.rb
@@ -28,7 +28,7 @@ end
if enable_config('lto', true)
$CFLAGS << ' -flto'
$CXXFLAGS << ' -flto'
- $LDFLAGS << ' -flto'
+ $LDFLAGS << ' -flto -fuse-ld=lld'
@@ -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]+)/, '')