Skip to content

Commit c9e5894

Browse files
authored
Merge pull request #3871 from NTULINUX/o2-cflags
CFLAGS: Replace instances of -Os with -O2
2 parents 3513fdf + 94a8b2c commit c9e5894

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
@@ -817,7 +817,7 @@ def build_usr(tempdir, filename, mode, origfilename):
817817
makefile = os.path.join(tempdir, "Makefile")
818818
f = open(makefile, "w")
819819
print("%s: %s" % (binname, filename), file=f)
820-
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" % (
820+
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" % (
821821

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

0 commit comments

Comments
 (0)