Message ID | 1418136265-13433-1-git-send-email-maxim.uvarov@linaro.org |
---|---|
State | New |
Headers | show |
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])
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 --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])
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(+)