On Tue, Aug 14, 2012 at 3:54 PM, Matt Turner <matts...@gmail.com> wrote:
> On Tue, Aug 14, 2012 at 10:34 AM, Kevin H. Hobbs <hob...@ohio.edu> wrote:
>> I just checked out mesa from git.
>>
>> My system runs Fedora 17 x86_64.
>>
>> I configured mesa with :
>>
>> $ ./autogen.sh \
>>   --prefix=/home/kevin/mesa_build/ \
>>   --disable-dri \
>>   --enable-glx \
>>   --enable-xlib-glx \
>>   --enable-osmesa \
>>   --without-gallium-drivers
>>
>> and built with :
>>
>> $ make -ij8 && make
>>
>> I get :
>>
>> gmake[5]: Entering directory `/home/kevin/mesa/src/mesa/drivers/x11'
>>   CCLD   libGL.la
>> /usr/bin/ld: cannot find -l-O2
>> collect2: error: ld returned 1 exit status
>>
>> I ran :
>>
>> $ make SHELL="sh -xv"
>>
>> and got:
>>
>> ++ gcc -shared -fPIC -DPIC .libs/fakeglx.o .libs/glxapi.o .libs/xfonts.o
>> .libs/xm_api.o .libs/xm_buffer.o .libs/xm_dd.o .libs/xm_line.o
>> .libs/xm_tri.o -Wl,--whole-archive ../../../../src/mesa/.libs/libmesa.a
>> ../../../../src/mapi/glapi/.libs/libglapi.a -Wl,--no-whole-archive -lX11
>> -lXext -lm -lpthread -ldl -L../../../../lib -l -O2 -Wl,-soname
>> -Wl,libGL.so.1 -o .libs/libGL.so.1.6.0
>> /usr/bin/ld: cannot find -l-O2
>> collect2: error: ld returned 1 exit status
>>
>> I find the "-l -O2" suspicious.
>
> Yeah, check out my comment here:
> https://bugs.gentoo.org/show_bug.cgi?id=429288#c7
>
> The attached patch fixes the linking problems with (shared-)glapi and
> libstdc++. Unfortunately, it doesn't make it work -- libGL.so doesn't
> export any gl* functions. Not sure what's going on here.

Ian says (and I agree) that shared-glapi doesn't make any sense for
non-DRI configurations. So build with --disable-shared-glapi until I
get a patch to disable it on Xlib/OSMesa/...
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to