[libqb] Patch for Cygwin

Виноградов Василий wmdlr at yandex.ru
Thu Sep 6 11:46:51 UTC 2012


I've made a mistake.

Of course, dl_phdr_info structure doesn't depend on ac_cv_atomic_need_memory_barrier.
For this purpose I turn off "ac_cv_link_attribute_section=no" in the patch, indeed.

Under Cygwin GCC doesn't' have built-in atomic operations (undefined references to __sync_synchronize(),
__sync_bool_compare_and_swap(), __sync_fetch_and_add()) even for IA. But we still need memory barriers.
For this purpose we need to turn on "ac_cv_atomic_need_memory_barrier=yes" or "nongcc_memory_barrier_needed=yes".
I like the last more. Moreover, it is already used in configure.ac.

New patch is attached.


06.09.2012, 14:09, "Angus Salkeld" <asalkeld at redhat.com>:
> On 06/09/12 09:48 +0400, Виноградов Василий wrote:
>
>> Hi!
>>
>> I propose the following patch for compiling libqb under Cygwin.
>
> Nice.
>
>> Though, I'm not sure about memory barriers. They are disabled by setting ac_cv_atomic_need_memory_barrier=no in configure.ac
>
> What compiler are you using? I assume gcc. If so I think you will still need ac_cv_atomic_need_memory_barrier.
>
>> because Cygwin doesn't have dl_phdr_info structure and so on.
>> Can anyone speak something about it?
>
> You probably need to turn off "ac_cv_link_attribute_section=no" to work
> around the missing dl_phdr_info.
>
> Regards
> Angus
>
>> _______________________________________________
>> quarterback-devel mailing list
>> quarterback-devel at lists.fedorahosted.org
>> https://lists.fedorahosted.org/mailman/listinfo/quarterback-devel
>
> _______________________________________________
> quarterback-devel mailing list
> quarterback-devel at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/quarterback-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 4555 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/quarterback-devel/attachments/20120906/9b8dd5dc/attachment-0001.obj>


More information about the quarterback-devel mailing list