summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2018-08-17 14:45:35 +0300
committerDan McDonald <danmcd@joyent.com>2018-08-20 13:36:29 -0400
commite153cda9f9660e385e8f468253f80e59f5d454d7 (patch)
treef406b80edcb18dbd29d465705d1d40828675d388
parentd23a2a081683858fbc9fafc163b60bbd8c9ede13 (diff)
downloadillumos-joyent-e153cda9f9660e385e8f468253f80e59f5d454d7.tar.gz
9754 grub: recent gcc needs -fno-reorder-functions
Reviewed by: Igor Kozhukhov <igor@dilos.org> Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Reviewed by: Yuri Pankov <yuripv@yuripv.net> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/grub/grub-0.97/Makefile.solaris.defs1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/src/grub/grub-0.97/Makefile.solaris.defs b/usr/src/grub/grub-0.97/Makefile.solaris.defs
index 6635364191..a7e68a5239 100644
--- a/usr/src/grub/grub-0.97/Makefile.solaris.defs
+++ b/usr/src/grub/grub-0.97/Makefile.solaris.defs
@@ -76,6 +76,7 @@ LINK = $(CCLD) $(LINKFLAGS) $(LDFLAGS)
DEFS = -DHAVE_CONFIG_H -DSOLARIS_NETBOOT
OPTFLAGS = -falign-jumps=1 -falign-loops=1 -falign-functions=1
+OPTFLAGS += -fno-reorder-functions
#WARNFLAGS = -Wall -Wmissing-prototypes -Wunused -Wshadow \
# -Wpointer-arith -Wundef