Don't force LTO. At least with Clang, the linker also needs to support

it.
This commit is contained in:
joerg 2019-12-25 00:14:15 +00:00
parent 9ef6d1df36
commit 9e3c7bc661
2 changed files with 16 additions and 7 deletions

View file

@ -1,9 +1,9 @@
$NetBSD: distinfo,v 1.1 2019/10/01 15:34:50 ryoon Exp $
$NetBSD: distinfo,v 1.2 2019/12/25 00:14:15 joerg Exp $
SHA1 (sassc-2.2.1.gem) = b496f902738b776c45bfda4e5331d46ab86f07a6
RMD160 (sassc-2.2.1.gem) = 98f0f990019e1da97c2c37979c537e6e75b05d2b
SHA512 (sassc-2.2.1.gem) = 728ad274363fd79aedee74fb6d4dbfc60f31b334e1a8054943ccf9cfa534fa3465abb00a2bd3020e198d287327058890411bb1983da6dc5dc3c4413b1936e2eb
Size (sassc-2.2.1.gem) = 302080 bytes
SHA1 (patch-ext_extconf.rb) = f7fe796136cf7c89dec971a8374709eb1b6183b8
SHA1 (patch-ext_extconf.rb) = 541bee4de572121ba554be7975335102b699f0fa
SHA1 (patch-ext_libsass_src_units.hpp) = 4673a9f289bd41c03f184e30ece3ee6e1b2efdf8
SHA1 (patch-ext_libsass_src_util.hpp) = 29f7d12577af9b6b81306c55558b491b6ee16d69

View file

@ -1,8 +1,11 @@
$NetBSD: patch-ext_extconf.rb,v 1.1 2019/10/01 15:34:50 ryoon Exp $
$NetBSD: patch-ext_extconf.rb,v 1.2 2019/12/25 00:14:15 joerg Exp $
Don't enable host-specific optimisations.
Don't enable LTO.
--- ext/extconf.rb.orig 2019-09-27 13:30:47.910318310 +0000
+++ ext/extconf.rb
@@ -19,12 +19,6 @@ if enable_config('static-stdlib', false)
@@ -19,18 +19,6 @@ if enable_config('static-stdlib', false)
$LDFLAGS << ' -static-libgcc -static-libstdc++'
end
@ -12,6 +15,12 @@ $NetBSD: patch-ext_extconf.rb,v 1.1 2019/10/01 15:34:50 ryoon Exp $
- $CXXFLAGS << ' -march=native -mtune=native'
-end
-
if enable_config('lto', true)
$CFLAGS << ' -flto'
$CXXFLAGS << ' -flto'
-if enable_config('lto', true)
- $CFLAGS << ' -flto'
- $CXXFLAGS << ' -flto'
- $LDFLAGS << ' -flto'
-end
-
# Disable noisy compilation warnings.
$warnflags = ''
$CFLAGS.gsub!(/[\s+](-ansi|-std=[^\s]+)/, '')