pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/simh Don't use LTO with clang on NetBSD, ld ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5794d5af005c
branches:  trunk
changeset: 423454:5794d5af005c
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Tue Feb 18 16:49:50 2020 +0000

description:
Don't use LTO with clang on NetBSD, ld doesn't know about it.

diffstat:

 emulators/simh/distinfo               |   4 ++--
 emulators/simh/patches/patch-makefile |  13 +++++++++----
 2 files changed, 11 insertions(+), 6 deletions(-)

diffs (55 lines):

diff -r 8d6473a5958b -r 5794d5af005c emulators/simh/distinfo
--- a/emulators/simh/distinfo   Tue Feb 18 16:49:13 2020 +0000
+++ b/emulators/simh/distinfo   Tue Feb 18 16:49:50 2020 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.30 2018/09/24 14:12:28 gson Exp $
+$NetBSD: distinfo,v 1.31 2020/02/18 16:49:50 joerg Exp $
 
 SHA1 (simh-4.0.0-0fe4bf3281a4d1f9fd10bba07cf0f7e40da92fc3.tar.gz) = 58d77b58be3850d5f1cd9a7cdcb24d1e110bd71e
 RMD160 (simh-4.0.0-0fe4bf3281a4d1f9fd10bba07cf0f7e40da92fc3.tar.gz) = 0b2ad6107006f89b0ca66ddc556c2f00df56937c
 SHA512 (simh-4.0.0-0fe4bf3281a4d1f9fd10bba07cf0f7e40da92fc3.tar.gz) = 1c17430e74022cb5a9aebc784dc1a223fbbe323799ab528a9c788db8e3dbad01b7635da3c3dc158fcd28103c5fc462ce0fc3e9cdd90c298ff6ecdeb3dfd5f0a8
 Size (simh-4.0.0-0fe4bf3281a4d1f9fd10bba07cf0f7e40da92fc3.tar.gz) = 12077046 bytes
-SHA1 (patch-makefile) = ed0f4fdcb63d09e7f0374abafc3f8d03f0f86e91
+SHA1 (patch-makefile) = 6e07d6fb406a455a93447facfc93c79da7de74a6
 SHA1 (patch-sim__ether.c) = 5a67f2cdde8917a32c7655853e5e79d4294d0790
diff -r 8d6473a5958b -r 5794d5af005c emulators/simh/patches/patch-makefile
--- a/emulators/simh/patches/patch-makefile     Tue Feb 18 16:49:13 2020 +0000
+++ b/emulators/simh/patches/patch-makefile     Tue Feb 18 16:49:50 2020 +0000
@@ -1,11 +1,12 @@
-$NetBSD: patch-makefile,v 1.2 2018/09/24 14:12:28 gson Exp $
+$NetBSD: patch-makefile,v 1.3 2020/02/18 16:49:50 joerg Exp $
 
 Exclude -flto for gcc 4.1.3 (used in NetBSD/vax 6)
+Exclude -flto for clang on NetBSD
 Exclude -flto for gcc 4.4.7 (Used in DragonFly 2.13 - 3.1)
 Make -O2 conditional so can be overridden by environment
 Fix SDL2 detection
 
---- makefile.orig      2018-09-20 05:36:48.000000000 +0000
+--- makefile.orig      2018-09-20 05:36:48.-00145232 +0000
 +++ makefile
 @@ -217,7 +217,7 @@ ifeq ($(WIN32),)  #*nix Environments (&&
        $(shell git log -1 --pretty="SIM_GIT_COMMIT_ID %H%nSIM_GIT_COMMIT_TIME $(isodate)" >.git-commit-id)
@@ -16,7 +17,7 @@
    PCAPLIB = pcap
    ifeq (agcc,$(findstring agcc,$(GCC))) # Android target build?
      OS_CCDEFS = -D_GNU_SOURCE
-@@ -1039,11 +1039,11 @@ ifneq (,$(UNSUPPORTED_BUILD))
+@@ -1039,20 +1039,23 @@ ifneq (,$(UNSUPPORTED_BUILD))
  endif
  ifneq ($(DEBUG),)
    CFLAGS_G = -g -ggdb -g3
@@ -29,8 +30,12 @@
 +    CFLAGS_O ?= -O0
      ifeq (Darwin,$(OSTYPE))
        NO_LTO = 1
++    endif
++    ifeq (NetBSD,$(OSTYPE))
++      NO_LTO = 1
      endif
-@@ -1052,7 +1052,7 @@ else
+   else
+     NO_LTO = 1
      ifeq (Darwin,$(OSTYPE))
        CFLAGS_O += -O4 -fno-strict-overflow -flto -fwhole-program
      else



Home | Main Index | Thread Index | Old Index