[Mesa-dev] [PATCH 11/24] targets/pipe-loader: move LLVM_LIBS handling inside PIPE_LIBS

Emil Velikov emil.l.velikov at gmail.com
Sat Mar 29 05:28:26 PDT 2014


On 28/03/14 21:32, Matt Turner wrote:
> On Thu, Mar 27, 2014 at 2:00 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>> This lets us have only one if HAVE_MESA_LLVM block, rather than
>> one for each driver.
>>
>> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
>> ---
>>  src/gallium/targets/pipe-loader/Makefile.am | 34 ++++++++++-------------------
>>  1 file changed, 11 insertions(+), 23 deletions(-)
>>
>> diff --git a/src/gallium/targets/pipe-loader/Makefile.am b/src/gallium/targets/pipe-loader/Makefile.am
>> index 8e76d41..fae4fa3 100644
>> --- a/src/gallium/targets/pipe-loader/Makefile.am
>> +++ b/src/gallium/targets/pipe-loader/Makefile.am
>> @@ -52,11 +52,13 @@ AM_LDFLAGS = \
>>         -Wl,--version-script=$(top_srcdir)/src/gallium/targets/pipe-loader/pipe.link
>>
>>  if HAVE_MESA_LLVM
>> +PIPE_LIBS += $(LLVM_LIBS)
> 
> It would be kind of nice to not just tack this onto an unrelated
> variable. I see that we're already abusing PIPE_LIBS to contain
> DLOPEN_LIBS, CLOCK_LIBS, -lpthread (grr, should be PTHREAD_LIBS), and
> -lm.
> 
> Maybe do the whole thing as a follow on patch -- splitting these out
> into a COMMON_LIBS variable or something.
> 
Makes sense. If you don't mind, I'll follow up once the dust is settled.

-Emil


More information about the mesa-dev mailing list