mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-20 13:28:09 +02:00
This fixes a build problem where EGL links to libgbm.la, which encodes a relative path to it's libglapi.so dependency. The relative path breaks when the linker tries to resolve it from src/egl/main instead of src/gbm. Typically we silently fall back to the system libglapi.so, which is wrong and breaks when there isn't one. Morale of the story: don't mix mklib and libtool.
40 lines
919 B
Makefile
40 lines
919 B
Makefile
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = main/gbm.pc
|
|
|
|
AM_CFLAGS = \
|
|
-D_OS_UNIX=1 \
|
|
-DMODULEDIR='"$(libdir)/gbm"' \
|
|
-I$(top_srcdir)/include \
|
|
-I$(top_srcdir)/src/gbm/main \
|
|
$(LIBUDEV_CFLAGS) \
|
|
$(DLOPEN_CFLAGS) \
|
|
$(DEFINES)
|
|
|
|
lib_LTLIBRARIES = libgbm.la
|
|
include_HEADERS = main/gbm.h
|
|
|
|
libgbm_la_SOURCES = \
|
|
main/gbm.c \
|
|
main/backend.c \
|
|
main/common.c
|
|
libgbm_la_LDFLAGS = -version-info 1:0
|
|
libgbm_la_LIBADD = $(LIBUDEV_LIBS) $(DLOPEN_LIBS)
|
|
|
|
if HAVE_DRI
|
|
noinst_LTLIBRARIES = libgbm_dri.la
|
|
libgbm_dri_la_SOURCES = \
|
|
backends/dri/gbm_dri.c \
|
|
backends/dri/driver_name.c
|
|
|
|
libgbm_dri_la_CFLAGS = \
|
|
$(AM_CFLAGS) \
|
|
-DDEFAULT_DRIVER_DIR='"$(DRI_DRIVER_SEARCH_DIR)"' \
|
|
$(LIBDRM_CFLAGS)
|
|
|
|
libgbm_la_LIBADD += \
|
|
libgbm_dri.la $(top_builddir)/src/mapi/shared-glapi/libglapi.la
|
|
endif
|
|
|
|
all-local: libgbm.la
|
|
$(MKDIR_P) $(top_builddir)/$(LIB_DIR);
|
|
ln -f .libs/libgbm.so.1.0.0 $(top_builddir)/$(LIB_DIR)/libgbm.so
|