tech-x11 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

re: GLES



Robert Swindells writes:
> 
> I have put my diffs and new files to add GLESv[23] to the build at:
>
> <https://ftp.netbsd.org/pub/NetBSD/misc/rjs/gles.tar.gz>
>
> The GLES3 headers are handled by a target under external/mit/xorg/include
> and the GLES2 headers and libraries by one under external/mit/xorg/lib.
>
> With a matching diff to pkgsrc pkgtools/x11-links, the x11/zutty package
> builds and seems to work.

looks pretty good.  thanks for working on this.

the sets probably need help for old xorg-server platforms, or at
least confirm it builds ok there (build.sh -m vax -x.)

what's the "old" and "new" comments for CPPFLAGS in the Makefile?

            s,@GL_PC_LIB_PRIV@,-lm -lpthread -pthread,; \

has a double pthread, and otherwise *does* match the version in
bsd.x11.mk now.  that line, and two around it:

        -e "s,@GL_PKGCONF_LIB@,GLESv2,; \
            s,@GL_PC_CFLAGS@,,"

but i don't see *any* of these used any more?  i only seem to
seem similar ones for GLUT and GLW now days.

you shouldn't really need to set -pthread in CFLAGS *and* also
set LDADD/DPADD.  -pthread tells the compiler to do the right
things.  (it _will_ have a positive effect for static only hosts
that will re-link if changed.  dynamic, doesn't really need the
relink except to run the linker checkers.)  (maybe we do this
elsewhere and you merely copied the method.)

oh, the .pc.in also has the doubled -lpthread thing.

thanks.


.mrg.


Home | Main Index | Thread Index | Old Index