Skip to content

Commit 94a8b2c

Browse files
committed
CFLAGS: Replace instances of -Os with -O2
-Os or -O2 should have no effect on doubles. Signed-off-by: Alec Ari <neotheuser@ymail.com>
1 parent 4fd0453 commit 94a8b2c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Makefile.inc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ RTAI = @RTAI@
7777
RTFLAGS = @RTFLAGS@ @EXT_RTFLAGS@
7878
KERNELDIR = @KERNELDIR@
7979
RTFLAGS := -I. -I@RTDIR@/include $(RTFLAGS) -DRTAPI -D_GNU_SOURCE -Drealtime
80-
ULFLAGS = -Wall -g -I. -I@RTDIR@/include -DULAPI -D_GNU_SOURCE -Os -DLOCALE_DIR=\"$(localedir)\" -DPACKAGE=\"$(package)\"
80+
ULFLAGS = -Wall -g -I. -I@RTDIR@/include -DULAPI -D_GNU_SOURCE -O2 -DLOCALE_DIR=\"$(localedir)\" -DPACKAGE=\"$(package)\"
8181
MODULE_EXT = @MODEXT@
8282
BUILD_SYS = @BUILD_SYS@
8383
CC = @CC@

src/hal/utils/halcompile.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ def build_usr(tempdir, filename, mode, origfilename):
816816
makefile = os.path.join(tempdir, "Makefile")
817817
f = open(makefile, "w")
818818
print("%s: %s" % (binname, filename), file=f)
819-
print("\t$(CC) -I%s -I$(EMC2_HOME)/include -I/usr/include/linuxcnc -URTAPI -U__MODULE__ -DULAPI -Os %s -o $@ $< -Wl,-rpath,$(LIBDIR) -L$(LIBDIR) -llinuxcnchal %s" % (
819+
print("\t$(CC) -I%s -I$(EMC2_HOME)/include -I/usr/include/linuxcnc -URTAPI -U__MODULE__ -DULAPI -O2 %s -o $@ $< -Wl,-rpath,$(LIBDIR) -L$(LIBDIR) -llinuxcnchal %s" % (
820820

821821
os.path.abspath(os.path.dirname(origfilename)),
822822
options.get("extra_compile_args", ""),

0 commit comments

Comments
 (0)