pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/ruby-sassc Don't force LTO. At least with Clang, t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7d7347173e6b
branches:  trunk
changeset: 419636:7d7347173e6b
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Wed Dec 25 00:14:15 2019 +0000

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

diffstat:

 www/ruby-sassc/distinfo                     |   4 ++--
 www/ruby-sassc/patches/patch-ext_extconf.rb |  19 ++++++++++++++-----
 2 files changed, 16 insertions(+), 7 deletions(-)

diffs (48 lines):

diff -r a17e77d33680 -r 7d7347173e6b www/ruby-sassc/distinfo
--- a/www/ruby-sassc/distinfo   Tue Dec 24 20:22:17 2019 +0000
+++ b/www/ruby-sassc/distinfo   Wed Dec 25 00:14:15 2019 +0000
@@ -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
diff -r a17e77d33680 -r 7d7347173e6b www/ruby-sassc/patches/patch-ext_extconf.rb
--- a/www/ruby-sassc/patches/patch-ext_extconf.rb       Tue Dec 24 20:22:17 2019 +0000
+++ b/www/ruby-sassc/patches/patch-ext_extconf.rb       Wed Dec 25 00:14:15 2019 +0000
@@ -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 @@
 -  $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]+)/, '')



Home | Main Index | Thread Index | Old Index