View | Details | Raw Unified | Return to bug 206411
Collapse All | Expand All

(-)emulators/simh/Makefile (-1 / +1 lines)
Lines 13-19 Link Here
13
NO_WRKSUBDIR=	yes
13
NO_WRKSUBDIR=	yes
14
14
15
USES=		gmake dos2unix zip
15
USES=		gmake dos2unix zip
16
DOS2UNIX_FILES=	VAX/vax_sysdev.c
16
DOS2UNIX_FILES=	makefile VAX/vax_sysdev.c
17
MAKE_ENV=	GCC="${CC}" CFLAGS_O="${CFLAGS}" USE_NETWORK=1
17
MAKE_ENV=	GCC="${CC}" CFLAGS_O="${CFLAGS}" USE_NETWORK=1
18
MAKEFILE=	makefile
18
MAKEFILE=	makefile
19
19
(-)emulators/simh/files/patch-makefile (+15 lines)
Line 0 Link Here
1
--- makefile.orig	2012-04-23 16:28:04.000000000 +0200
2
+++ makefile	2016-01-19 20:21:21.371550000 +0100
3
@@ -332,8 +332,10 @@
4
   endif
5
   ifeq (,$(NO_LTO))
6
     ifneq (,$(findstring -flto,$(GCC_OPTIMIZERS)))
7
-      CFLAGS_O += -flto -fwhole-program
8
-      LDFLAGS_O += -flto -fwhole-program
9
+      ifneq (,$(findstring -fwhole-program,$(GCC_OPTIMIZERS)))
10
+        CFLAGS_O += -flto -fwhole-program
11
+        LDFLAGS_O += -flto -fwhole-program
12
+      endif
13
     endif
14
   endif
15
   BUILD_FEATURES = - compiler optimizations and no debugging support

Return to bug 206411