Re: [Mesa-dev] [PATCH 1/2] configure: check if -latomic is needed for __atomic_*

2017-09-19 Thread Emil Velikov
On 19 September 2017 at 13:01, Grazvydas Ignotas wrote: > On Tue, Sep 19, 2017 at 2:04 PM, Emil Velikov > wrote: >> On 19 September 2017 at 10:12, Grazvydas Ignotas wrote: >>> On Mon, Sep 18, 2017 at 11:30 PM, Matt Turner wrote: On Mon, Sep 18, 2017 at 12:28 PM, Grazvydas Ignotas w

Re: [Mesa-dev] [PATCH 1/2] configure: check if -latomic is needed for __atomic_*

2017-09-19 Thread Grazvydas Ignotas
On Tue, Sep 19, 2017 at 2:04 PM, Emil Velikov wrote: > On 19 September 2017 at 10:12, Grazvydas Ignotas wrote: >> On Mon, Sep 18, 2017 at 11:30 PM, Matt Turner wrote: >>> On Mon, Sep 18, 2017 at 12:28 PM, Grazvydas Ignotas >>> wrote: On some platforms, gcc generates library calls when __a

Re: [Mesa-dev] [PATCH 1/2] configure: check if -latomic is needed for __atomic_*

2017-09-19 Thread Emil Velikov
On 19 September 2017 at 10:12, Grazvydas Ignotas wrote: > On Mon, Sep 18, 2017 at 11:30 PM, Matt Turner wrote: >> On Mon, Sep 18, 2017 at 12:28 PM, Grazvydas Ignotas >> wrote: >>> On some platforms, gcc generates library calls when __atomic_* functions >>> are used, but does not link the requir

Re: [Mesa-dev] [PATCH 1/2] configure: check if -latomic is needed for __atomic_*

2017-09-19 Thread Grazvydas Ignotas
On Mon, Sep 18, 2017 at 11:30 PM, Matt Turner wrote: > On Mon, Sep 18, 2017 at 12:28 PM, Grazvydas Ignotas wrote: >> On some platforms, gcc generates library calls when __atomic_* functions >> are used, but does not link the required library automatically. Detect >> this and add the library when

Re: [Mesa-dev] [PATCH 1/2] configure: check if -latomic is needed for __atomic_*

2017-09-18 Thread Matt Turner
Oh, also, these should get a Cc: mesa-stable tag. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/2] configure: check if -latomic is needed for __atomic_*

2017-09-18 Thread Matt Turner
On Mon, Sep 18, 2017 at 12:28 PM, Grazvydas Ignotas wrote: > On some platforms, gcc generates library calls when __atomic_* functions > are used, but does not link the required library automatically. Detect > this and add the library when needed. > > This change was tested on armel (library was ad

[Mesa-dev] [PATCH 1/2] configure: check if -latomic is needed for __atomic_*

2017-09-18 Thread Grazvydas Ignotas
On some platforms, gcc generates library calls when __atomic_* functions are used, but does not link the required library automatically. Detect this and add the library when needed. This change was tested on armel (library was added) and on x86_64 (was not, as expected). Fixes: 8915f0c0 "util: us