| @@ -1,24 +1,24 @@ | | | @@ -1,24 +1,24 @@ |
1 | $NetBSD: patch-makefile,v 1.5 2021/10/19 20:34:48 rhialto Exp $ | | 1 | $NetBSD: patch-makefile,v 1.6 2021/12/11 14:35:57 rhialto 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 clang on NetBSD | | 4 | Exclude -flto for clang on NetBSD |
5 | Exclude -flto for gcc 4.4.7 (Used in DragonFly 2.13 - 3.1) | | 5 | Exclude -flto for gcc 4.4.7 (Used in DragonFly 2.13 - 3.1) |
6 | NO_LTO=1 is in effect for gcc and clang, except Darwin. | | 6 | NO_LTO=1 is in effect for gcc and clang, except Darwin. |
7 | Fix png16 detection. | | 7 | Fix png16 detection. |
8 | Let INCLUDES and LIBRARIES be the sole source for INCPATH and LIBPATH, | | 8 | Let INCLUDES and LIBRARIES be the sole source for INCPATH and LIBPATH, |
9 | to avoid seeing non-pkgsrc libraries (except MacOS platform). | | 9 | to avoid seeing non-pkgsrc libraries (except MacOS platform). |
10 | | | 10 | |
11 | --- makefile.orig 2021-10-13 01:53:56.000000000 +0000 | | 11 | --- makefile.orig 2021-12-11 02:17:18.000000000 +0000 |
12 | +++ makefile | | 12 | +++ makefile |
13 | @@ -298,7 +298,7 @@ ifeq (${WIN32},) #*nix Environments (&& | | 13 | @@ -298,7 +298,7 @@ ifeq (${WIN32},) #*nix Environments (&& |
14 | $(shell git log -1 --pretty="SIM_GIT_COMMIT_ID %H$(GIT_EXTRA_FILES)%nSIM_GIT_COMMIT_TIME $(isodate)" >.git-commit-id)
| | 14 | $(shell git log -1 --pretty="SIM_GIT_COMMIT_ID %H$(GIT_EXTRA_FILES)%nSIM_GIT_COMMIT_TIME $(isodate)" >.git-commit-id)
|
15 | endif
| | 15 | endif
|
16 | endif
| | 16 | endif
|
17 | - LTO_EXCLUDE_VERSIONS =
| | 17 | - LTO_EXCLUDE_VERSIONS =
|
18 | + LTO_EXCLUDE_VERSIONS = 4.1.3 4.4.7 4.8.3 4.8.4 4.8.5 5.3.0 5.4.0
| | 18 | + LTO_EXCLUDE_VERSIONS = 4.1.3 4.4.7 4.8.3 4.8.4 4.8.5 5.3.0 5.4.0
|
19 | PCAPLIB = pcap
| | 19 | PCAPLIB = pcap
|
20 | ifeq (agcc,$(findstring agcc,${GCC})) # Android target build?
| | 20 | ifeq (agcc,$(findstring agcc,${GCC})) # Android target build?
|
21 | OS_CCDEFS = -D_GNU_SOURCE -DSIM_ASYNCH_IO
| | 21 | OS_CCDEFS = -D_GNU_SOURCE -DSIM_ASYNCH_IO
|
22 | @@ -339,16 +339,16 @@ ifeq (${WIN32},) #*nix Environments (&& | | 22 | @@ -339,16 +339,16 @@ ifeq (${WIN32},) #*nix Environments (&& |
23 | ifeq (Darwin,$(OSTYPE))
| | 23 | ifeq (Darwin,$(OSTYPE))
|
24 | OSNAME = OSX
| | 24 | OSNAME = OSX
|
| @@ -63,37 +63,37 @@ to avoid seeing non-pkgsrc libraries (ex | | | @@ -63,37 +63,37 @@ to avoid seeing non-pkgsrc libraries (ex |
63 | endif
| | 63 | endif
|
64 | ifneq (,$(shell if ${TEST} -d /system/lib; then echo systemlib; fi))
| | 64 | ifneq (,$(shell if ${TEST} -d /system/lib; then echo systemlib; fi))
|
65 | - LIBPATH += /system/lib
| | 65 | - LIBPATH += /system/lib
|
66 | + # LIBPATH += /system/lib
| | 66 | + # LIBPATH += /system/lib
|
67 | endif
| | 67 | endif
|
68 | - LIBPATH += $(LD_LIBRARY_PATH)
| | 68 | - LIBPATH += $(LD_LIBRARY_PATH)
|
69 | + # LIBPATH += $(LD_LIBRARY_PATH)
| | 69 | + # LIBPATH += $(LD_LIBRARY_PATH)
|
70 | endif
| | 70 | endif
|
71 | ifeq (ldconfig,$(shell if ${TEST} -e /sbin/ldconfig; then echo ldconfig; fi))
| | 71 | ifeq (ldconfig,$(shell if ${TEST} -e /sbin/ldconfig; then echo ldconfig; fi))
|
72 | - LIBPATH := $(sort $(foreach lib,$(shell /sbin/ldconfig -p | grep ' => /' | sed 's/^.* => //'),$(dir $(lib))))
| | 72 | - LIBPATH := $(sort $(foreach lib,$(shell /sbin/ldconfig -p | grep ' => /' | sed 's/^.* => //'),$(dir $(lib))))
|
73 | + # LIBPATH := $(sort $(foreach lib,$(shell /sbin/ldconfig -p | grep ' => /' | sed 's/^.* => //'),$(dir $(lib))))
| | 73 | + # LIBPATH := $(sort $(foreach lib,$(shell /sbin/ldconfig -p | grep ' => /' | sed 's/^.* => //'),$(dir $(lib))))
|
74 | endif
| | 74 | endif
|
75 | endif
| | 75 | endif
|
76 | LIBEXT = so
| | 76 | LIBSOEXT = so
|
77 | @@ -383,7 +383,7 @@ ifeq (${WIN32},) #*nix Environments (&& | | 77 | @@ -384,7 +384,7 @@ ifeq (${WIN32},) #*nix Environments (&& |
78 | ifeq (SunOS,$(OSTYPE))
| | 78 | ifeq (SunOS,$(OSTYPE))
|
79 | OSNAME = Solaris
| | 79 | OSNAME = Solaris
|
80 | ifneq (lib,$(findstring lib,$(UNSUPPORTED_BUILD)))
| | 80 | ifneq (lib,$(findstring lib,$(UNSUPPORTED_BUILD)))
|
81 | - LIBPATH := $(shell LANG=C; crle | grep 'Default Library Path' | awk '{ print $$5 }' | sed 's/:/ /g')
| | 81 | - LIBPATH := $(shell LANG=C; crle | grep 'Default Library Path' | awk '{ print $$5 }' | sed 's/:/ /g')
|
82 | + # LIBPATH := $(shell LANG=C; crle | grep 'Default Library Path' | awk '{ print $$5 }' | sed 's/:/ /g')
| | 82 | + # LIBPATH := $(shell LANG=C; crle | grep 'Default Library Path' | awk '{ print $$5 }' | sed 's/:/ /g')
|
83 | endif
| | 83 | endif
|
84 | LIBEXT = so
| | 84 | LIBEXT = so
|
85 | OS_LDFLAGS += -lsocket -lnsl
| | 85 | OS_LDFLAGS += -lsocket -lnsl
|
86 | @@ -392,27 +392,27 @@ ifeq (${WIN32},) #*nix Environments (&& | | 86 | @@ -393,27 +393,27 @@ ifeq (${WIN32},) #*nix Environments (&& |
87 | OS_CCDEFS += -I/opt/sfw/include
| | 87 | OS_CCDEFS += -I/opt/sfw/include
|
88 | endif
| | 88 | endif
|
89 | ifeq (libsfw,$(shell if ${TEST} -d /opt/sfw/lib; then echo libsfw; fi))
| | 89 | ifeq (libsfw,$(shell if ${TEST} -d /opt/sfw/lib; then echo libsfw; fi))
|
90 | - LIBPATH += /opt/sfw/lib
| | 90 | - LIBPATH += /opt/sfw/lib
|
91 | - OS_LDFLAGS += -L/opt/sfw/lib -R/opt/sfw/lib
| | 91 | - OS_LDFLAGS += -L/opt/sfw/lib -R/opt/sfw/lib
|
92 | + # LIBPATH += /opt/sfw/lib
| | 92 | + # LIBPATH += /opt/sfw/lib
|
93 | + # OS_LDFLAGS += -L/opt/sfw/lib -R/opt/sfw/lib
| | 93 | + # OS_LDFLAGS += -L/opt/sfw/lib -R/opt/sfw/lib
|
94 | endif
| | 94 | endif
|
95 | OS_CCDEFS += -D_LARGEFILE_SOURCE
| | 95 | OS_CCDEFS += -D_LARGEFILE_SOURCE
|
96 | else
| | 96 | else
|
97 | ifeq (cygwin,$(OSTYPE))
| | 97 | ifeq (cygwin,$(OSTYPE))
|
98 | # use 0readme_ethernet.txt documented Windows pcap build components
| | 98 | # use 0readme_ethernet.txt documented Windows pcap build components
|
99 | - INCPATH += ../windows-build/winpcap/WpdPack/Include
| | 99 | - INCPATH += ../windows-build/winpcap/WpdPack/Include
|
| @@ -109,49 +109,49 @@ to avoid seeing non-pkgsrc libraries (ex | | | @@ -109,49 +109,49 @@ to avoid seeing non-pkgsrc libraries (ex |
109 | - INCPATH += /opt/freeware/include
| | 109 | - INCPATH += /opt/freeware/include
|
110 | - OS_CCDEFS += -I/opt/freeware/include
| | 110 | - OS_CCDEFS += -I/opt/freeware/include
|
111 | + # INCPATH += /opt/freeware/include
| | 111 | + # INCPATH += /opt/freeware/include
|
112 | + # OS_CCDEFS += -I/opt/freeware/include
| | 112 | + # OS_CCDEFS += -I/opt/freeware/include
|
113 | endif
| | 113 | endif
|
114 | ifeq (libopt,$(shell if ${TEST} -d /opt/freeware/lib; then echo libopt; fi))
| | 114 | ifeq (libopt,$(shell if ${TEST} -d /opt/freeware/lib; then echo libopt; fi))
|
115 | - LIBPATH += /opt/freeware/lib
| | 115 | - LIBPATH += /opt/freeware/lib
|
116 | - OS_LDFLAGS += -L/opt/freeware/lib
| | 116 | - OS_LDFLAGS += -L/opt/freeware/lib
|
117 | + # LIBPATH += /opt/freeware/lib
| | 117 | + # LIBPATH += /opt/freeware/lib
|
118 | + # OS_LDFLAGS += -L/opt/freeware/lib
| | 118 | + # OS_LDFLAGS += -L/opt/freeware/lib
|
119 | endif
| | 119 | endif
|
120 | else
| | 120 | else
|
121 | ifneq (,$(findstring Haiku,$(OSTYPE)))
| | 121 | ifneq (,$(findstring Haiku,$(OSTYPE)))
|
122 | @@ -423,9 +423,9 @@ ifeq (${WIN32},) #*nix Environments (&& | | 122 | @@ -424,9 +424,9 @@ ifeq (${WIN32},) #*nix Environments (&& |
123 | ifeq ($(HAIKU_ARCH),x86_gcc2)
| | 123 | ifeq ($(HAIKU_ARCH),x86_gcc2)
|
124 | $(error Unsupported arch x86_gcc2. Run setarch x86 and retry)
| | 124 | $(error Unsupported arch x86_gcc2. Run setarch x86 and retry)
|
125 | endif
| | 125 | endif
|
126 | - INCPATH := $(shell findpaths -e -a $(HAIKU_ARCH) B_FIND_PATH_HEADERS_DIRECTORY)
| | 126 | - INCPATH := $(shell findpaths -e -a $(HAIKU_ARCH) B_FIND_PATH_HEADERS_DIRECTORY)
|
127 | - INCPATH += $(shell findpaths -e B_FIND_PATH_HEADERS_DIRECTORY posix)
| | 127 | - INCPATH += $(shell findpaths -e B_FIND_PATH_HEADERS_DIRECTORY posix)
|
128 | - LIBPATH := $(shell findpaths -e -a $(HAIKU_ARCH) B_FIND_PATH_DEVELOP_LIB_DIRECTORY)
| | 128 | - LIBPATH := $(shell findpaths -e -a $(HAIKU_ARCH) B_FIND_PATH_DEVELOP_LIB_DIRECTORY)
|
129 | + # INCPATH := $(shell findpaths -e -a $(HAIKU_ARCH) B_FIND_PATH_HEADERS_DIRECTORY)
| | 129 | + # INCPATH := $(shell findpaths -e -a $(HAIKU_ARCH) B_FIND_PATH_HEADERS_DIRECTORY)
|
130 | + # INCPATH += $(shell findpaths -e B_FIND_PATH_HEADERS_DIRECTORY posix)
| | 130 | + # INCPATH += $(shell findpaths -e B_FIND_PATH_HEADERS_DIRECTORY posix)
|
131 | + # LIBPATH := $(shell findpaths -e -a $(HAIKU_ARCH) B_FIND_PATH_DEVELOP_LIB_DIRECTORY)
| | 131 | + # LIBPATH := $(shell findpaths -e -a $(HAIKU_ARCH) B_FIND_PATH_DEVELOP_LIB_DIRECTORY)
|
132 | OS_LDFLAGS += -lnetwork
| | 132 | OS_LDFLAGS += -lnetwork
|
133 | else
| | 133 | else
|
134 | ifeq (,$(findstring NetBSD,$(OSTYPE)))
| | 134 | ifeq (,$(findstring NetBSD,$(OSTYPE)))
|
135 | @@ -433,7 +433,7 @@ ifeq (${WIN32},) #*nix Environments (&& | | 135 | @@ -434,7 +434,7 @@ ifeq (${WIN32},) #*nix Environments (&& |
136 | LDSEARCH :=$(shell LANG=C; ldconfig -r | grep 'search directories' | awk '{print $$3}' | sed 's/:/ /g')
| | 136 | LDSEARCH :=$(shell LANG=C; ldconfig -r | grep 'search directories' | awk '{print $$3}' | sed 's/:/ /g')
|
137 | endif
| | 137 | endif
|
138 | ifneq (,$(LDSEARCH))
| | 138 | ifneq (,$(LDSEARCH))
|
139 | - LIBPATH := $(LDSEARCH)
| | 139 | - LIBPATH := $(LDSEARCH)
|
140 | + # LIBPATH := $(LDSEARCH)
| | 140 | + # LIBPATH := $(LDSEARCH)
|
141 | else
| | 141 | else
|
142 | ifeq (,$(strip $(LPATH)))
| | 142 | ifeq (,$(strip $(LPATH)))
|
143 | $(info *** Warning ***)
| | 143 | $(info *** Warning ***)
|
144 | @@ -445,22 +445,22 @@ ifeq (${WIN32},) #*nix Environments (&& | | 144 | @@ -446,22 +446,22 @@ ifeq (${WIN32},) #*nix Environments (&& |
145 | $(info *** Warning *** variable.)
| | 145 | $(info *** Warning *** variable.)
|
146 | $(info *** Warning ***)
| | 146 | $(info *** Warning ***)
|
147 | else
| | 147 | else
|
148 | - LIBPATH = $(subst :, ,$(LPATH))
| | 148 | - LIBPATH = $(subst :, ,$(LPATH))
|
149 | + # LIBPATH = $(subst :, ,$(LPATH))
| | 149 | + # LIBPATH = $(subst :, ,$(LPATH))
|
150 | endif
| | 150 | endif
|
151 | endif
| | 151 | endif
|
152 | - OS_LDFLAGS += $(patsubst %,-L%,${LIBPATH})
| | 152 | - OS_LDFLAGS += $(patsubst %,-L%,${LIBPATH})
|
153 | + # OS_LDFLAGS += $(patsubst %,-L%,${LIBPATH})
| | 153 | + # OS_LDFLAGS += $(patsubst %,-L%,${LIBPATH})
|
154 | endif
| | 154 | endif
|
155 | endif
| | 155 | endif
|
156 | endif
| | 156 | endif
|
157 | ifeq (usrpkglib,$(shell if ${TEST} -d /usr/pkg/lib; then echo usrpkglib; fi))
| | 157 | ifeq (usrpkglib,$(shell if ${TEST} -d /usr/pkg/lib; then echo usrpkglib; fi))
|
| @@ -162,72 +162,72 @@ to avoid seeing non-pkgsrc libraries (ex | | | @@ -162,72 +162,72 @@ to avoid seeing non-pkgsrc libraries (ex |
162 | + # LIBPATH += /usr/pkg/lib
| | 162 | + # LIBPATH += /usr/pkg/lib
|
163 | + # INCPATH += /usr/pkg/include
| | 163 | + # INCPATH += /usr/pkg/include
|
164 | + # OS_LDFLAGS += -L/usr/pkg/lib -R/usr/pkg/lib
| | 164 | + # OS_LDFLAGS += -L/usr/pkg/lib -R/usr/pkg/lib
|
165 | + # OS_CCDEFS += -I/usr/pkg/include
| | 165 | + # OS_CCDEFS += -I/usr/pkg/include
|
166 | endif
| | 166 | endif
|
167 | ifeq (/usr/local/lib,$(findstring /usr/local/lib,${LIBPATH}))
| | 167 | ifeq (/usr/local/lib,$(findstring /usr/local/lib,${LIBPATH}))
|
168 | - INCPATH += /usr/local/include
| | 168 | - INCPATH += /usr/local/include
|
169 | - OS_CCDEFS += -I/usr/local/include
| | 169 | - OS_CCDEFS += -I/usr/local/include
|
170 | + # INCPATH += /usr/local/include
| | 170 | + # INCPATH += /usr/local/include
|
171 | + # OS_CCDEFS += -I/usr/local/include
| | 171 | + # OS_CCDEFS += -I/usr/local/include
|
172 | endif
| | 172 | endif
|
173 | ifneq (,$(findstring NetBSD,$(OSTYPE))$(findstring FreeBSD,$(OSTYPE))$(findstring AIX,$(OSTYPE)))
| | 173 | ifneq (,$(findstring NetBSD,$(OSTYPE))$(findstring FreeBSD,$(OSTYPE))$(findstring AIX,$(OSTYPE)))
|
174 | LIBEXT = so
| | 174 | LIBEXT = so
|
175 | @@ -484,12 +484,12 @@ ifeq (${WIN32},) #*nix Environments (&& | | 175 | @@ -488,12 +488,12 @@ ifeq (${WIN32},) #*nix Environments (&& |
176 | endif
| | 176 | endif
|
177 | ifeq (,$(filter /lib/,$(LIBPATH)))
| | 177 | ifeq (,$(filter /lib/,$(LIBPATH)))
|
178 | ifeq (existlib,$(shell if $(TEST) -d /lib/; then echo existlib; fi))
| | 178 | ifeq (existlib,$(shell if $(TEST) -d /lib/; then echo existlib; fi))
|
179 | - LIBPATH += /lib/
| | 179 | - LIBPATH += /lib/
|
180 | + # LIBPATH += /lib/
| | 180 | + # LIBPATH += /lib/
|
181 | endif
| | 181 | endif
|
182 | endif
| | 182 | endif
|
183 | ifeq (,$(filter /usr/lib/,$(LIBPATH)))
| | 183 | ifeq (,$(filter /usr/lib/,$(LIBPATH)))
|
184 | ifeq (existusrlib,$(shell if $(TEST) -d /usr/lib/; then echo existusrlib; fi))
| | 184 | ifeq (existusrlib,$(shell if $(TEST) -d /usr/lib/; then echo existusrlib; fi))
|
185 | - LIBPATH += /usr/lib/
| | 185 | - LIBPATH += /usr/lib/
|
186 | + # LIBPATH += /usr/lib/
| | 186 | + # LIBPATH += /usr/lib/
|
187 | endif
| | 187 | endif
|
188 | endif
| | 188 | endif
|
189 | export CPATH = $(subst $() $(),:,$(INCPATH))
| | 189 | export CPATH = $(subst $() $(),:,$(INCPATH))
|
190 | @@ -598,9 +598,9 @@ ifeq (${WIN32},) #*nix Environments (&& | | 190 | @@ -602,9 +602,9 @@ ifeq (${WIN32},) #*nix Environments (&& |
191 | OS_CCDEFS += -DHAVE_UTIME
| | 191 | OS_CCDEFS += -DHAVE_UTIME
|
192 | endif
| | 192 | endif
|
193 | ifneq (,$(call find_include,png))
| | 193 | ifneq (,$(call find_include,png))
|
194 | - ifneq (,$(call find_lib,png))
| | 194 | - ifneq (,$(call find_lib,png))
|
195 | + ifneq (,$(call find_lib,png16))
| | 195 | + ifneq (,$(call find_lib,png16))
|
196 | OS_CCDEFS += -DHAVE_LIBPNG
| | 196 | OS_CCDEFS += -DHAVE_LIBPNG
|
197 | - OS_LDFLAGS += -lpng
| | 197 | - OS_LDFLAGS += -lpng
|
198 | + OS_LDFLAGS += -lpng16
| | 198 | + OS_LDFLAGS += -lpng16
|
199 | $(info using libpng: $(call find_lib,png) $(call find_include,png))
| | 199 | $(info using libpng: $(call find_lib,png) $(call find_include,png))
|
200 | ifneq (,$(call find_include,zlib))
| | 200 | ifneq (,$(call find_include,zlib))
|
201 | ifneq (,$(call find_lib,z))
| | 201 | ifneq (,$(call find_lib,z))
|
202 | @@ -790,7 +790,7 @@ ifeq (${WIN32},) #*nix Environments (&& | | 202 | @@ -794,7 +794,7 @@ ifeq (${WIN32},) #*nix Environments (&& |
203 | NETWORK_FEATURES = - dynamic networking support using libpcap components from www.tcpdump.org and locally installed libpcap.${LIBEXT}
| | 203 | NETWORK_FEATURES = - dynamic networking support using libpcap components from www.tcpdump.org and locally installed libpcap.${LIBEXT}
|
204 | $(info using libpcap: $(call find_include,pcap))
| | 204 | $(info using libpcap: $(call find_include,pcap))
|
205 | else
| | 205 | else
|
206 | - LIBPATH += /usr/local/lib
| | 206 | - LIBPATH += /usr/local/lib
|
207 | + # LIBPATH += /usr/local/lib
| | 207 | + # LIBPATH += /usr/local/lib
|
208 | LIBEXT = a
| | 208 | LIBEXT = a
|
209 | ifneq (,$(call find_lib,$(PCAPLIB)))
| | 209 | ifneq (,$(call find_lib,$(PCAPLIB)))
|
210 | $(info using libpcap: $(call find_lib,$(PCAPLIB)) $(call find_include,pcap))
| | 210 | $(info using libpcap: $(call find_lib,$(PCAPLIB)) $(call find_include,pcap))
|
211 | @@ -1185,11 +1185,11 @@ ifneq (,$(UNSUPPORTED_BUILD))
| | 211 | @@ -1189,11 +1189,11 @@ ifneq (,$(UNSUPPORTED_BUILD))
|
212 | endif
| | 212 | endif
|
213 | ifneq ($(DEBUG),)
| | 213 | ifneq ($(DEBUG),)
|
214 | CFLAGS_G = -g -ggdb -g3
| | 214 | CFLAGS_G = -g -ggdb -g3
|
215 | - CFLAGS_O = -O0
| | 215 | - CFLAGS_O = -O0
|
216 | + CFLAGS_O += -O0
| | 216 | + CFLAGS_O += -O0
|
217 | BUILD_FEATURES = - debugging support
| | 217 | BUILD_FEATURES = - debugging support
|
218 | else
| | 218 | else
|
219 | ifneq (,$(findstring clang,$(COMPILER_NAME))$(findstring LLVM,$(COMPILER_NAME)))
| | 219 | ifneq (,$(findstring clang,$(COMPILER_NAME))$(findstring LLVM,$(COMPILER_NAME)))
|
220 | - CFLAGS_O = -O2 -fno-strict-overflow
| | 220 | - CFLAGS_O = -O2 -fno-strict-overflow
|
221 | + CFLAGS_O += -O2 -fno-strict-overflow
| | 221 | + CFLAGS_O += -O2 -fno-strict-overflow
|
222 | GCC_OPTIMIZERS_CMD = ${GCC} --help
| | 222 | GCC_OPTIMIZERS_CMD = ${GCC} --help
|
223 | NO_LTO = 1
| | 223 | NO_LTO = 1
|
224 | else
| | 224 | else
|
225 | @@ -1197,7 +1197,7 @@ else
| | 225 | @@ -1201,7 +1201,7 @@ else
|
226 | ifeq (Darwin,$(OSTYPE))
| | 226 | ifeq (Darwin,$(OSTYPE))
|
227 | CFLAGS_O += -O4 -flto -fwhole-program
| | 227 | CFLAGS_O += -O4 -flto -fwhole-program
|
228 | else
| | 228 | else
|
229 | - CFLAGS_O := -O2
| | 229 | - CFLAGS_O := -O2
|
230 | + CFLAGS_O += -O2
| | 230 | + CFLAGS_O += -O2
|
231 | endif
| | 231 | endif
|
232 | endif
| | 232 | endif
|
233 | LDFLAGS_O =
| | 233 | LDFLAGS_O =
|