Re: [Mesa-dev] [mesa build system] glsl builtin_functions.cpp change breaks entire compilation

2011-01-12 Thread Tobias Jakobi
And it looks like that Kenneth already fixed it in the meantime. Hehe, at least I learned something new about linking. Thanks Kenneth! ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [mesa build system] glsl builtin_functions.cpp change breaks entire compilation

2011-01-12 Thread Tobias Jakobi
No, I just found the real issue while reading the gentoo guide on "--as-needed". In fact the only thing that is wrong here is the order of objects and libraries: $(APP_CXX) $(INCLUDES) $(CFLAGS) $(LDFLAGS) $(OBJECTS) $(GLSL2_OBJECTS) builtin_stubs.o $(TALLOC_LIBS) -o builtin_compiler When pu

Re: [Mesa-dev] [mesa build system] glsl builtin_functions.cpp change breaks entire compilation

2011-01-12 Thread Tobias Jakobi
Some further testing shows that the LDFLAGS seem to cause the problem. More specifically the '--as-needed' which is passed to the linker. I don't know how to fix this, but I figure it could become a problem for a lot more users since more and more distros seem to use '--as-needed' by default.

[Mesa-dev] [mesa build system] glsl builtin_functions.cpp change breaks entire compilation

2011-01-12 Thread Tobias Jakobi
Hello, I just bisected a build error I encountered when updating to latest git master. The bad commit is: 33d0c44910860e0522bd56a0f8637a69e0c4a456 glsl: Autogenerate builtin_functions.cpp as part of the build process. http://cgit.freedesktop.org/mesa/mesa/commit/?id=33d0c44910860e0522bd56a0f86