diff options
| author | Peter Jones <pjones@redhat.com> | 2019-11-22 16:14:23 -0500 |
|---|---|---|
| committer | Javier Martinez Canillas <javier@dowhile0.org> | 2021-02-16 09:12:48 +0100 |
| commit | 4edb31fcfc12dc0627edf8018f3a179dffe634a1 (patch) | |
| tree | b888e28f34708fe543be624aa3f81a41bd3bfde1 /Make.defaults | |
| parent | 25c83246373b95dffdd152c784934e47b8323edd (diff) | |
| download | efi-boot-shim-4edb31fcfc12dc0627edf8018f3a179dffe634a1.tar.gz efi-boot-shim-4edb31fcfc12dc0627edf8018f3a179dffe634a1.zip | |
Use gcc -Os instead of -O0.
Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'Make.defaults')
| -rw-r--r-- | Make.defaults | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Make.defaults b/Make.defaults index e58a2810..e85e957b 100644 --- a/Make.defaults +++ b/Make.defaults @@ -27,6 +27,7 @@ DASHJ ?= -j$(shell echo $$(($$(grep -c "^model name" /proc/cpuinfo) + 1))) ARCH ?= $(shell $(CC) -dumpmachine | cut -f1 -d- | sed s,i[3456789]86,ia32,) OBJCOPY_GTE224 = $(shell expr `$(OBJCOPY) --version |grep ^"GNU objcopy" | sed 's/^.*\((.*)\|version\) //g' | cut -f1-2 -d.` \>= 2.24) +OPTIMIZATIONS ?= -Os SUBDIRS = $(TOPDIR)/Cryptlib $(TOPDIR)/lib @@ -87,7 +88,7 @@ ifeq ($(ARCH),arm) TIMESTAMP_LOCATION := 72 endif -CFLAGS = -ggdb -O0 -fno-stack-protector -fno-strict-aliasing -fpic \ +CFLAGS = -ggdb $(OPTIMIZATIONS) -fno-stack-protector -fno-strict-aliasing -fpic \ -fshort-wchar -Wall -Wsign-compare -Werror -fno-builtin \ -Werror=sign-compare -ffreestanding -std=gnu89 \ -I$(shell $(CC) $(ARCH_CFLAGS) -print-file-name=include) \ |
