Skip to contentSkip to conversation

libsepol/tests: fix mispelling of optimization option

PATCH Applied Nicolas Iooss 2 participants 2 messages Sep 25, 2016 – Sep 26, 2016 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libsepol/tests: fix mispelling of optimization option

In CFLAGS, -o0 means "output in file 0", not "compile at optimization level 0".

---
 libsepol/tests/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libsepol/tests/Makefile +1 -1
index dd7bd333c58c..60b3e836cc94 100644
@@ -2,7 +2,7 @@ M4 ?= m4
 MKDIR ?= mkdir
 EXE ?= libsepol-tests
 
-CFLAGS += -g3 -gdwarf-2 -o0 -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute -Wno-unused-parameter -Werror
+CFLAGS += -g3 -gdwarf-2 -O0 -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute -Wno-unused-parameter -Werror
 
 # Statically link libsepol on the assumption that we are going to
 # be testing internal functions.
Signature · 1 line
2.10.0
#1 lore raw
Quoted 4 lines · Nicolas Iooss

In CFLAGS, -o0 means "output in file 0", not "compile at optimization level 0".

Thanks, applied.

Quoted 18 lines
---
 libsepol/tests/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libsepol/tests/Makefile +1 -1
index dd7bd333c58c..60b3e836cc94 100644
@@ -2,7 +2,7 @@ M4 ?= m4
 MKDIR ?= mkdir
 EXE ?= libsepol-tests
 
-CFLAGS += -g3 -gdwarf-2 -o0 -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute -Wno-unused-parameter -Werror
+CFLAGS += -g3 -gdwarf-2 -O0 -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute -Wno-unused-parameter -Werror
 
 # Statically link libsepol on the assumption that we are going to
 # be testing internal functions.