libtool-patches
[Top][All Lists]
Advanced

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

Re: [PATCH] tests: skip with-pic test when no "real" pic flag is used.


From: Peter Rosin
Subject: Re: [PATCH] tests: skip with-pic test when no "real" pic flag is used.
Date: Wed, 19 Sep 2012 23:52:33 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1

On 2012-09-19 23:02, Roumen Petrov wrote:
> Peter Rosin wrote:
>> On 2012-09-19 21:43, Roumen Petrov wrote:
>>> Peter Rosin wrote:
>>>> * tests/with-pic.at: Windows uses "-DDLL_EXPORT -DPIC" as the pic
>>>> "flag", but never applies it to static libraries. Cater for this
>>>> and skip if no "real" pic flag is in use.
>>> I'm not sure that this test is suitable for mingw host.
>>>
>>>
>>>> Signed-off-by: Peter Rosin <address@hidden>
>>>> ---
>>>>    tests/with-pic.at |   11 ++++++++++-
>>>>    1 files changed, 10 insertions(+), 1 deletions(-)
>>>>
>>>> Ok to push?
>>> No as libtool should define -DPIC and for mingw host "pic" flag is 
>>> -DDLL_EXPORT
>> The test skips on MinGW with the patch, w/o the patch it
>> fails. You are first saying that the test is not suitable
>> for MinGW (implying that a skip is in order), and then you
>> don't like the patch (implying that a fail is good news).
>> You don't make any sense.
>>
>> So, what do you mean?
> On woe libtool define -DDLL_EXPORT as pic flag . So the value is
> pic_flag=" -DDLL_EXPORT -DPIC"
> On some "other" platform "PIC default". I don't have asses to
> those platforms and I could guess that the value is pic_flag="-DPIC",
> i.e. only wit defines.

Ah, now the objection makes sense.  Thanks for spelling it out!

> If I understand patched code properly, skip the test if pic_flag
> contain only defines. This mean that "other" platform will be skipped
> too.

Correct.
 
> What about to skip test only if DLL_EXPORT is in pic_flag ?

Since the patch has already been pushed and it is only a test
that may be skipped on some "other" platforms, I'm going to
wait for a bit until someone can confirm if this change has in
fact caused skips where the test used to pass.  So, not
rushing this one...

Anyway, the change is simple if needed:

-real_pic=false
+no_dlls=:
 case " $pic_flag " in
-[*" "[^" "-]* | *" "-[^D]*]) real_pic=: ;;
+"* -DDLL_EXPORT *") no_dlls=false ;;
 esac
-AT_CHECK([$real_pic || exit 77])
+AT_CHECK([$no_dlls || exit 77])

Cheers,
Peter




reply via email to

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