Evidently at least static OSMesa is still used as shared one
causes substantial increase in the load time for some programs
that use it (from seconds up-to ~30min).
Rather than forcing everyone to use shared mesa, revert commit
a6efbac9fb
and default to shared
build when both shared and static are disabled.
v2: Whitespace cleanup, drop silly comment.
Reported-by: Burlen Loring <burlen.loring@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
19 lines
556 B
Makefile
19 lines
556 B
Makefile
# Provide compatibility with scripts for the old Mesa build system for
|
|
# a while by putting a link to the driver into /lib of the build tree.
|
|
|
|
if BUILD_SHARED
|
|
if HAVE_COMPAT_SYMLINKS
|
|
all-local : .libs/install-mesa-links
|
|
|
|
.libs/install-mesa-links : $(lib_LTLIBRARIES)
|
|
$(AM_V_GEN)$(MKDIR_P) $(top_builddir)/$(LIB_DIR); \
|
|
for f in $(lib_LTLIBRARIES:%.la=.libs/%.$(LIB_EXT)*); do \
|
|
if test -h .libs/$$f; then \
|
|
cp -d $$f $(top_builddir)/$(LIB_DIR); \
|
|
else \
|
|
ln -f $$f $(top_builddir)/$(LIB_DIR); \
|
|
fi; \
|
|
done && touch $@
|
|
endif
|
|
endif
|