| @@ -1,26 +1,26 @@ | | | @@ -1,26 +1,26 @@ |
1 | $NetBSD: patch-aa,v 1.13 2014/11/20 23:48:12 jklos Exp $ | | 1 | $NetBSD: patch-aa,v 1.14 2016/01/12 12:51:19 abs Exp $ |
2 | | | 2 | |
3 | Exclude -flto for gcc 4.1.3 (used in NetBSD/vax 6) | | 3 | Exclude -flto for gcc 4.1.3 (used in NetBSD/vax 6) |
4 | Exclude -flto for gcc 4.4.7 (Used in DragonFly 2.13 - 3.1) | | 4 | Exclude -flto for gcc 4.4.7 (Used in DragonFly 2.13 - 3.1) |
5 | Make -O2 conditional so can be overridden by environment | | 5 | Make -O2 conditional so can be overridden by environment |
6 | | | 6 | |
7 | --- makefile.orig 2012-06-13 16:46:32.000000000 +0000 | | 7 | --- makefile.orig 2012-06-13 16:46:32.000000000 +0000 |
8 | +++ makefile | | 8 | +++ makefile |
9 | @@ -63,7 +63,7 @@ ifeq ($(WIN32),) #*nix Environments (&& | | 9 | @@ -63,7 +63,7 @@ ifeq ($(WIN32),) #*nix Environments (&& |
10 | OSNAME = windows-build | | 10 | OSNAME = windows-build |
11 | endif | | 11 | endif |
12 | GCC_VERSION = $(shell $(GCC) -v /dev/null 2>&1 | grep 'gcc version' | awk '{ print $$3 }') | | 12 | GCC_VERSION = $(shell $(GCC) -v /dev/null 2>&1 | grep 'gcc version' | awk '{ print $$3 }') |
13 | - LTO_EXCLUDE_VERSIONS = | | 13 | - LTO_EXCLUDE_VERSIONS = |
14 | + LTO_EXCLUDE_VERSIONS = 4.1.3 4.4.7 4.8.3 4.8.4 | | 14 | + LTO_EXCLUDE_VERSIONS = 4.1.3 4.4.7 4.8.3 4.8.4 4.8.5 |
15 | PCAPLIB = pcap | | 15 | PCAPLIB = pcap |
16 | ifeq (agcc,$(findstring agcc,$(GCC))) # Android target build? | | 16 | ifeq (agcc,$(findstring agcc,$(GCC))) # Android target build? |
17 | OS_CCDEFS = -D_GNU_SOURCE | | 17 | OS_CCDEFS = -D_GNU_SOURCE |
18 | @@ -300,7 +300,7 @@ ifneq ($(DEBUG),) | | 18 | @@ -300,7 +300,7 @@ ifneq ($(DEBUG),) |
19 | CFLAGS_O = -O0 | | 19 | CFLAGS_O = -O0 |
20 | BUILD_FEATURES = - debugging support | | 20 | BUILD_FEATURES = - debugging support |
21 | else | | 21 | else |
22 | - CFLAGS_O = -O2 | | 22 | - CFLAGS_O = -O2 |
23 | + CFLAGS_O ?= -O2 | | 23 | + CFLAGS_O ?= -O2 |
24 | LDFLAGS_O = | | 24 | LDFLAGS_O = |
25 | GCC_MAJOR_VERSION = $(firstword $(subst ., ,$(GCC_VERSION))) | | 25 | GCC_MAJOR_VERSION = $(firstword $(subst ., ,$(GCC_VERSION))) |
26 | ifneq (3,$(GCC_MAJOR_VERSION)) | | 26 | ifneq (3,$(GCC_MAJOR_VERSION)) |