mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-24 02:50:39 +02:00
radeon/llvm: Always build libradeonllvm as static
This library is very small, so there is not much to gain from building it as a shared library. Also, when linking statically with LLVM, a shared libradeonllvm exports LLVM symbols and creates problems when used with other shared objects that also link statically to LLVM. Reviewed-by: Mathias.Froehlich@web.de
This commit is contained in:
parent
024fe6852a
commit
914d797797
3 changed files with 10 additions and 17 deletions
|
|
@ -29,7 +29,7 @@ if R600_NEED_RADEON_GALLIUM
|
|||
libr600_la_SOURCES += \
|
||||
$(LLVM_C_SOURCES)
|
||||
|
||||
libr600_la_LIBADD += ../radeon/libllvmradeon@VERSION@.la
|
||||
libr600_la_LIBADD += ../radeon/libllvmradeon.la
|
||||
|
||||
AM_CFLAGS += \
|
||||
$(LLVM_CFLAGS) \
|
||||
|
|
|
|||
|
|
@ -12,31 +12,24 @@ libradeon_la_SOURCES = \
|
|||
|
||||
if NEED_RADEON_LLVM
|
||||
|
||||
if HAVE_GALLIUM_R600
|
||||
if HAVE_GALLIUM_RADEONSI
|
||||
lib_LTLIBRARIES = libllvmradeon@VERSION@.la
|
||||
libllvmradeon@VERSION@_la_LDFLAGS = -Wl, -shared -avoid-version \
|
||||
libllvmradeon_la_LDFLAGS = \
|
||||
$(LLVM_LDFLAGS)
|
||||
LIBGALLIUM_LIBS += $(top_builddir)/src/gallium/auxiliary/libgallium.la
|
||||
else
|
||||
noinst_LTLIBRARIES += libllvmradeon@VERSION@.la
|
||||
endif
|
||||
else
|
||||
noinst_LTLIBRARIES += libllvmradeon@VERSION@.la
|
||||
endif
|
||||
|
||||
libllvmradeon@VERSION@_la_CXXFLAGS = \
|
||||
noinst_LTLIBRARIES += libllvmradeon.la
|
||||
|
||||
libllvmradeon_la_CXXFLAGS = \
|
||||
$(GALLIUM_CFLAGS) \
|
||||
$(DEFINES)
|
||||
|
||||
libllvmradeon@VERSION@_la_CFLAGS = \
|
||||
libllvmradeon_la_CFLAGS = \
|
||||
$(GALLIUM_CFLAGS) \
|
||||
$(LLVM_CFLAGS)
|
||||
|
||||
libllvmradeon@VERSION@_la_SOURCES = \
|
||||
libllvmradeon_la_SOURCES = \
|
||||
$(LLVM_CPP_FILES) \
|
||||
$(LLVM_C_FILES)
|
||||
|
||||
libllvmradeon@VERSION@_la_LIBADD = \
|
||||
libllvmradeon_la_LIBADD = \
|
||||
$(LIBGALLIUM_LIBS) \
|
||||
$(CLOCK_LIB) \
|
||||
$(LLVM_LIBS) \
|
||||
|
|
|
|||
|
|
@ -35,4 +35,4 @@ AM_CFLAGS = $(LLVM_CFLAGS)
|
|||
libradeonsi_la_SOURCES = $(C_SOURCES)
|
||||
libradeonsi_la_LIBADD = \
|
||||
../radeon/libradeon.la \
|
||||
../radeon/libllvmradeon@VERSION@.la
|
||||
../radeon/libllvmradeon.la
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue