Don't link unconditionally against libosmesa
fix cli frontend --opengl-2d when libosmesa is available.
This commit is contained in:
parent
568e0548e5
commit
69bf4a0b03
|
@ -83,9 +83,11 @@ if test "x$osmesa" = "xyes" ; then
|
|||
AC_CHECK_LIB(OSMesa, main,[
|
||||
useosmesa=yes
|
||||
AC_DEFINE(HAVE_LIBOSMESA)
|
||||
LIBS="-lOSMesa $LIBS"
|
||||
OSMESA_LIBS="-lOSMesa"
|
||||
AC_SUBST(OSMESA_LIBS)
|
||||
])
|
||||
fi
|
||||
AM_CONDITIONAL([HAVE_LIBOSMESA], [test "${useosmesa}" = "yes"])
|
||||
|
||||
dnl - hack to help zero build gtk frontend macos x package
|
||||
AC_ARG_ENABLE(macosxhack,
|
||||
|
|
|
@ -23,6 +23,9 @@ desmume_LDADD = ../libdesmume.a \
|
|||
if HAVE_GDB_STUB
|
||||
desmume_LDADD += ../gdbstub/libgdbstub.a
|
||||
endif
|
||||
if HAVE_LIBOSMESA
|
||||
desmume_LDADD += $(OSMESA_LIBS)
|
||||
endif
|
||||
|
||||
UPDATE_DESKTOP = \
|
||||
appsdir=$(DESTDIR)$(datadir)/applications ; \
|
||||
|
|
Loading…
Reference in New Issue