automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 4/4] tests: do not assume the object file extension is .o


From: Peter Rosin
Subject: Re: [PATCH 4/4] tests: do not assume the object file extension is .o
Date: Mon, 30 Jan 2012 12:52:47 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1

Peter Rosin skrev 2012-01-30 12:42:
*snip*
> diff --git a/tests/specflg8.test b/tests/specflg8.test
> index 18527ed..4b46e86 100755
> --- a/tests/specflg8.test
> +++ b/tests/specflg8.test
> @@ -1,5 +1,5 @@
>  #! /bin/sh
> -# Copyright (C) 2002, 2004, 2011 Free Software Foundation, Inc.
> +# Copyright (C) 2002, 2004, 2011, 2012 Free Software Foundation, Inc.
>  #
>  # This program is free software; you can redistribute it and/or modify
>  # it under the terms of the GNU General Public License as published by
> @@ -57,7 +57,8 @@ $MAKE
>  ./true
>  ./false && Exit 1
>  
> -test -f ./true-true.o
> -test -f ./true-true.o
> +objext=`sed -n -e 's/^OBJEXT = //p' < Makefile`
> +test -f ./true-true.$objext
> +test -f ./true-true.$objext

*snip*

There should obviously have been one ./false-true.o originally,
consider changing the latter to ./false-true.$objext squashed in.

Cheers,
Peter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]