[Mesa-users] Cross compiling Mesa 9.1 and wrong ar and ranlib for libglslcore and libglcpp
Martin Lederhilger
M.Lederhilger at ds-automotion.com
Tue Feb 26 02:29:29 PST 2013
I have helped myself by simply not using libraries and added their
sources directly to builtin_compiler. But I don't think, that this is
the best solution.
--- Mesa-9.1/src/glsl/builtin_compiler/Makefile.am 2013-02-20 01:26:22.000000000 +0100
+++ Mesa-9.1-patched/src/glsl/builtin_compiler/Makefile.am 2013-02-26 11:15:59.140842593 +0100
@@ -64,6 +64,23 @@
include ../Makefile.sources
noinst_PROGRAMS = builtin_compiler
+
+if CROSS_COMPILING
+builtin_compiler_SOURCES = \
+ $(top_srcdir)/src/mesa/main/hash_table.c \
+ $(top_srcdir)/src/mesa/main/imports.c \
+ $(top_srcdir)/src/mesa/program/prog_hash_table.c\
+ $(top_srcdir)/src/mesa/program/symbol_table.c \
+ $(BUILTIN_COMPILER_CXX_FILES) \
+ $(GLSL_COMPILER_CXX_FILES) \
+ $(LIBGLCPP_GENERATED_FILES) \
+ $(LIBGLCPP_FILES) \
+ $(BUILTIN_COMPILER_GENERATED_CXX_FILES) \
+ $(LIBGLSL_FILES)
+builtin_compiler_CFLAGS = $(AM_CFLAGS)
+builtin_compiler_CPPFLAGS = $(AM_CPPFLAGS)
+builtin_compiler_CXXFLAGS = $(AM_CXXFLAGS)
+else
noinst_LTLIBRARIES = libglslcore.la libglcpp.la
libglcpp_la_SOURCES = \
@@ -82,3 +99,4 @@
$(BUILTIN_COMPILER_CXX_FILES) \
$(GLSL_COMPILER_CXX_FILES)
builtin_compiler_LDADD = libglslcore.la libglcpp.la
+endif
More information about the mesa-users
mailing list