diff mbox

normalize configure flags

Message ID 1418136265-13433-1-git-send-email-maxim.uvarov@linaro.org
State New
Headers show

Commit Message

Maxim Uvarov Dec. 9, 2014, 2:44 p.m. UTC
Remove duplicate and trailing white spaces in generated cflags,
ldflags and etc.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
---
 configure.ac | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Maxim Uvarov Dec. 11, 2014, 12:55 p.m. UTC | #1
Looks like no objections and it's ok to merge.

Maxim.

On 12/09/2014 05:44 PM, Maxim Uvarov wrote:
> Remove duplicate and trailing white spaces in generated cflags,
> ldflags and etc.
>
> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
> ---
>   configure.ac | 10 ++++++++++
>   1 file changed, 10 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index 2f27261..5f8b47b 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -211,6 +211,16 @@ AC_SEARCH_LIBS([timer_create],[rt posix4])
>   
>   AM_LDFLAGS="$AM_LDFLAGS -pthread -lrt"
>   
> +##########################################################################
> +# Remove duplicate and trailing white spaces in C/LD FLAGS.
> +##########################################################################
> +read CFLAGS	<<< $CFLAGS
> +read AM_CFLAGS  <<< $AM_CFLAGS
> +read LDLAGS	<<< $LDLAGS
> +read AM_LDFLAGS <<< $AM_LDFLAGS
> +read LIBS 	<<< $LIBS
> +
> +
>   AC_SUBST([LIBS])
>   AC_SUBST([AM_CFLAGS])
>   AC_SUBST([CFLAGS])
Maxim Uvarov Dec. 11, 2014, 1:29 p.m. UTC | #2
Merged. With removing one empty line as discussed with Anders.

Maxim.

On 12/09/2014 05:44 PM, Maxim Uvarov wrote:
> Remove duplicate and trailing white spaces in generated cflags,
> ldflags and etc.
>
> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
> ---
>   configure.ac | 10 ++++++++++
>   1 file changed, 10 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index 2f27261..5f8b47b 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -211,6 +211,16 @@ AC_SEARCH_LIBS([timer_create],[rt posix4])
>   
>   AM_LDFLAGS="$AM_LDFLAGS -pthread -lrt"
>   
> +##########################################################################
> +# Remove duplicate and trailing white spaces in C/LD FLAGS.
> +##########################################################################
> +read CFLAGS	<<< $CFLAGS
> +read AM_CFLAGS  <<< $AM_CFLAGS
> +read LDLAGS	<<< $LDLAGS
> +read AM_LDFLAGS <<< $AM_LDFLAGS
> +read LIBS 	<<< $LIBS
> +
> +
>   AC_SUBST([LIBS])
>   AC_SUBST([AM_CFLAGS])
>   AC_SUBST([CFLAGS])
diff mbox

Patch

diff --git a/configure.ac b/configure.ac
index 2f27261..5f8b47b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -211,6 +211,16 @@  AC_SEARCH_LIBS([timer_create],[rt posix4])
 
 AM_LDFLAGS="$AM_LDFLAGS -pthread -lrt"
 
+##########################################################################
+# Remove duplicate and trailing white spaces in C/LD FLAGS.
+##########################################################################
+read CFLAGS	<<< $CFLAGS
+read AM_CFLAGS  <<< $AM_CFLAGS
+read LDLAGS	<<< $LDLAGS
+read AM_LDFLAGS <<< $AM_LDFLAGS
+read LIBS 	<<< $LIBS
+
+
 AC_SUBST([LIBS])
 AC_SUBST([AM_CFLAGS])
 AC_SUBST([CFLAGS])