Skip to contentSkip to conversation

configure.ac: Fix typo

PATCH Applied Richard Weinberger (sigma star gmbh) 3 participants 4 messages Nov 24 – Nov 25

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure.ac: Fix typo

From: Richard Weinberger <[email protected]>

It's XENO_USER_CFLAGS, not XENU_USER_CFLAGS.
With the misnamed variable, xenomai was never built with -O2 on my side and caused funny performance regressions.

Fixes 89c1436b3 ("configure: Propagate debug build settings also to plain applications")
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +1 -1
index 0d6dd87b6..d707fb11d 100644
@@ -743,7 +743,7 @@ fi
 if test x$use_assert = x; then
    XENO_USER_CFLAGS_DEBUG="-DNDEBUG $XENO_USER_CFLAGS_DEBUG"
 fi
-XENU_USER_CFLAGS="$XENO_USER_CFLAGS_DEBUG $XENO_USER_CFLAGS"
+XENO_USER_CFLAGS="$XENO_USER_CFLAGS_DEBUG $XENO_USER_CFLAGS"
 
 XENO_USER_CFLAGS_STDLIB="$XENO_USER_CFLAGS"
 XENO_USER_CFLAGS="$XENO_USER_CFLAGS -I$topdir/include/$rtcore_type"
Signature · 1 line
2.55.0
Applied
#1 lore raw
Quoted 7 lines · Richard Weinberger (sigma star gmbh)

From: Richard Weinberger <[email protected]>

It's XENO_USER_CFLAGS, not XENU_USER_CFLAGS.
With the misnamed variable, xenomai was never built with -O2 on my side and caused funny performance regressions.

Fixes 89c1436b3 ("configure: Propagate debug build settings also to plain applications")

At least no stable regression.

Quoted 10 lines
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +0 -0
index 0d6dd87b6..d707fb11d 100644

configure.ac fi · line 749

Quoted 8 lines
configure.ac +1 -1
@@ -743,7 +743,7 @@ fi
 if test x$use_assert = x; then
    XENO_USER_CFLAGS_DEBUG="-DNDEBUG $XENO_USER_CFLAGS_DEBUG"
 fi
-XENU_USER_CFLAGS="$XENO_USER_CFLAGS_DEBUG $XENO_USER_CFLAGS"
+XENO_USER_CFLAGS="$XENO_USER_CFLAGS_DEBUG $XENO_USER_CFLAGS"
 
 XENO_USER_CFLAGS_STDLIB="$XENO_USER_CFLAGS"
 XENO_USER_CFLAGS="$XENO_USER_CFLAGS -I$topdir/include/$rtcore_type"

Thanks, applied.

Jan

Signature · 2 lines
Siemens AG, Foundational Technologies
Linux Expert Center
#2 lore raw
Quoted 10 lines · Jan Kiszka
Quoted 7 lines · Richard Weinberger (sigma star gmbh)

From: Richard Weinberger <[email protected]>

It's XENO_USER_CFLAGS, not XENU_USER_CFLAGS.
With the misnamed variable, xenomai was never built with -O2 on my side and caused funny performance regressions.

Fixes 89c1436b3 ("configure: Propagate debug build settings also to plain applications")

At least no stable regression.

Shouldn't the optimization level be separated from the debug settings? -02 inside a variable named XENO_USER_CFLAGS_DEBUG looks a bit strange.

Quoted 27 lines
Quoted 11 lines
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configure.ac +0 -0
index 0d6dd87b6..d707fb11d 100644

configure.ac fi · line 749

Quoted 8 lines
configure.ac +1 -1
@@ -743,7 +743,7 @@ fi
 if test x$use_assert = x; then
    XENO_USER_CFLAGS_DEBUG="-DNDEBUG $XENO_USER_CFLAGS_DEBUG"
 fi
-XENU_USER_CFLAGS="$XENO_USER_CFLAGS_DEBUG $XENO_USER_CFLAGS"
+XENO_USER_CFLAGS="$XENO_USER_CFLAGS_DEBUG $XENO_USER_CFLAGS"
 
 XENO_USER_CFLAGS_STDLIB="$XENO_USER_CFLAGS"
 XENO_USER_CFLAGS="$XENO_USER_CFLAGS -I$topdir/include/$rtcore_type"

Thanks, applied.

Jan

Signature · 2 lines
Siemens AG, Foundational Technologies
Linux Expert Center
#3 lore raw
Quoted 8 lines · Florian Bezdeka
Quoted 7 lines · Jan Kiszka
Quoted 6 lines · Richard Weinberger (sigma star gmbh)

From: Richard Weinberger <[email protected]>

It's XENO_USER_CFLAGS, not XENU_USER_CFLAGS.
With the misnamed variable, xenomai was never built with -O2 on my side and caused funny performance regressions.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Fixes 89c1436b3 ("configure: Propagate debug build settings also to plain applications")

At least no stable regression.

Shouldn't the optimization level be separated from the debug settings? -02 inside a variable named XENO_USER_CFLAGS_DEBUG looks a bit strange.

XENO_USER_CFLAGS_DEBUG is not simply appended when debugging is on, it controls what kind of debugging-affecting switches we inject. And the optimization level can affect debugging, thus is kept here.

But that has nothing to do with this typo.

Jan

Signature · 2 lines
Siemens AG, Foundational Technologies
Linux Expert Center