[Mesa-dev] [PATCH] osmesa: remove GLAPI_LIB from OSMESA_LIB_DEPS
Brian Paul
brianp at vmware.com
Thu Feb 2 07:17:25 PST 2012
On 02/02/2012 08:05 AM, Jon TURNEY wrote:
> On 02/02/2012 14:43, Brian Paul wrote:
>> Fixes both the autoconf and legacy config builds.
>>
>> The build was failing with "/usr/bin/ld: cannot find -lglapi" since
>> there was no -L flag pointing to the lib. But it's redundant anyway
>> since libglapi.a is already in the CORE_MESA object list.
>> ---
>> src/mesa/drivers/osmesa/Makefile | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/src/mesa/drivers/osmesa/Makefile b/src/mesa/drivers/osmesa/Makefile
>> index 005f4d5..32ee6cf 100644
>> --- a/src/mesa/drivers/osmesa/Makefile
>> +++ b/src/mesa/drivers/osmesa/Makefile
>> @@ -25,7 +25,7 @@ CORE_MESA = \
>> $(TOP)/src/mapi/glapi/libglapi.a \
>> $(TOP)/src/glsl/libglsl.a
>>
>> -OSMESA_LIB_DEPS := -L$(TOP)/$(LIB_DIR) -l$(GLAPI_LIB) $(OSMESA_LIB_DEPS)
>> +OSMESA_LIB_DEPS := -L$(TOP)/$(LIB_DIR) $(OSMESA_LIB_DEPS)
>>
>> .c.o:
>> $(CC) -c $(INCLUDE_DIRS) $(CFLAGS) $< -o $@
>
> After this change the line does nothing but add an unneeded -L flag
>
> Please just revert 4e5a8937d1a1bfb2a3bd067ed01e036728675fc2
OK, that seems to fix both builds too. Thanks.
-Brian
More information about the mesa-dev
mailing list