summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2020-02-18 16:49:50 +0000
committerjoerg <joerg@pkgsrc.org>2020-02-18 16:49:50 +0000
commitda139d234ee6f1c92ac99da7e1b15324cf855d4f (patch)
treece5ff60fe2633f300d13ab7664d7734eead19afd
parent03b956257c322ba57caa2aca2298a85c296f2181 (diff)
downloadpkgsrc-da139d234ee6f1c92ac99da7e1b15324cf855d4f.tar.gz
Don't use LTO with clang on NetBSD, ld doesn't know about it.
-rw-r--r--emulators/simh/distinfo4
-rw-r--r--emulators/simh/patches/patch-makefile13
2 files changed, 11 insertions, 6 deletions
diff --git a/emulators/simh/distinfo b/emulators/simh/distinfo
index 33b1131cda7..e3de5a33f09 100644
--- a/emulators/simh/distinfo
+++ b/emulators/simh/distinfo
@@ -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 --git a/emulators/simh/patches/patch-makefile b/emulators/simh/patches/patch-makefile
index e46b5afdb96..a56cfc45fc3 100644
--- a/emulators/simh/patches/patch-makefile
+++ b/emulators/simh/patches/patch-makefile
@@ -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 @@ Fix SDL2 detection
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 @@ Fix SDL2 detection
+ 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