diff options
author | Chia-I Wu <[email protected]> | 2010-07-16 20:09:29 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-07-16 20:19:13 +0800 |
commit | 08f4bc07e424aaeb35eb58736fdca64b1398c190 (patch) | |
tree | 4944450e7e9efa97ce751e80b7be9dc216e86dfc | |
parent | 39ae965783d43ecc4426d0340381c091518bdedb (diff) |
st/egl: Fix build on FreeBSD.
There is no libdl on FreeBSD. Based on patch from Thinker
<[email protected]>, which is against 7.8.
This fixes fdo bug #29093.
-rw-r--r-- | configs/autoconf.in | 2 | ||||
-rw-r--r-- | configs/default | 2 | ||||
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | src/gallium/targets/egl/Makefile | 2 |
4 files changed, 6 insertions, 1 deletions
diff --git a/configs/autoconf.in b/configs/autoconf.in index 5afd5627fec..7c6f123cac0 100644 --- a/configs/autoconf.in +++ b/configs/autoconf.in @@ -34,6 +34,8 @@ LLVM_LIBS = @LLVM_LIBS@ GLW_CFLAGS = @GLW_CFLAGS@ GLUT_CFLAGS = @GLUT_CFLAGS@ +# dlopen +DLOPEN_LIBS = @DLOPEN_LIBS@ # Source selection MESA_ASM_SOURCES = @MESA_ASM_SOURCES@ diff --git a/configs/default b/configs/default index 3d9744409ae..8711a382cc0 100644 --- a/configs/default +++ b/configs/default @@ -131,6 +131,8 @@ VG_LIB_DEPS = $(EXTRA_LIB_PATH) -lpthread APP_LIB_DEPS = -lm X11_LIBS = -lX11 +DLOPEN_LIBS = -ldl + # Installation directories (for make install) INSTALL_DIR = /usr/local INSTALL_LIB_DIR = $(INSTALL_DIR)/$(LIB_DIR) diff --git a/configure.ac b/configure.ac index 1214100a8fd..96195976a0e 100644 --- a/configure.ac +++ b/configure.ac @@ -410,6 +410,7 @@ dnl Check to see if dlopen is in default libraries (like Solaris, which dnl has it in libc), or if libdl is needed to get it. AC_CHECK_FUNC([dlopen], [], [AC_CHECK_LIB([dl], [dlopen], [DLOPEN_LIBS="-ldl"])]) +AC_SUBST([DLOPEN_LIBS]) dnl See if posix_memalign is available AC_CHECK_FUNC([posix_memalign], [DEFINES="$DEFINES -DHAVE_POSIX_MEMALIGN"]) diff --git a/src/gallium/targets/egl/Makefile b/src/gallium/targets/egl/Makefile index f1259a557a1..1e4bb4d94c2 100644 --- a/src/gallium/targets/egl/Makefile +++ b/src/gallium/targets/egl/Makefile @@ -37,7 +37,7 @@ egl_CPPFLAGS := \ -I$(TOP)/src/gallium/state_trackers/egl \ -I$(TOP)/src/egl/main \ -DPIPE_PREFIX=\"$(PIPE_PREFIX)\" -DST_PREFIX=\"$(ST_PREFIX)\" -egl_SYS := -lm -ldl -L$(TOP)/$(LIB_DIR) -lEGL +egl_SYS := -lm $(DLOPEN_LIBS) -L$(TOP)/$(LIB_DIR) -lEGL egl_LIBS := $(TOP)/src/gallium/state_trackers/egl/libegl.a ifneq ($(findstring x11, $(EGL_PLATFORMS)),) |