waffle-gl / waffle

A C library for selecting an OpenGL API and window system at runtime
https://waffle.freedesktop.org
BSD 2-Clause "Simplified" License
35 stars 16 forks source link

Don't explicitly link to libraries (use libdl instead) #9

Open jljusten opened 10 years ago

jljusten commented 10 years ago

For platforms that support libdl, we should not link directly to libraries.

Instead, libwaffle should dlopen libraries at runtime.

This will allow libwaffle to be used in scenarios where the other system libraries are not installed.

For example, this should be possible:

evelikov commented 10 years ago

Rough split of current dependencies:

evelikov commented 10 years ago

libEGL - v1, v2 Tested

Todo:

evelikov commented 10 years ago

The libX11* dependencies

The above could be replaced with

Update: the above has to be done once piglit is "fixed" to use xcb alone - currently it uses a strange mix of xlib + xcb.

evelikov commented 9 years ago

libgbm, libGL v1

Tested:

evelikov commented 9 years ago

libwayland* v1, Patch 4 v2

Tested: