debian/patches/117-static-gallium.patch | 407 +------------------------------- 1 file changed, 24 insertions(+), 383 deletions(-)
New commits: commit 3e834a5e06b33c56b4cb1ff2605dc57e0962d2aa Author: Maarten Lankhorst <maarten.lankho...@canonical.com> Date: Thu Feb 7 17:46:21 2013 +0100 refresh 117-static-gallium.patch diff --git a/debian/patches/117-static-gallium.patch b/debian/patches/117-static-gallium.patch index a81feae..6a81e43 100644 --- a/debian/patches/117-static-gallium.patch +++ b/debian/patches/117-static-gallium.patch @@ -1,35 +1,8 @@ -diff --git a/configs/current.in b/configs/current.in -index c490842..73d08be 100644 ---- a/configs/current.in -+++ b/configs/current.in -@@ -13,6 +13,7 @@ PIC_FLAGS = @PIC_FLAGS@ - DEFINES = @DEFINES@ - API_DEFINES = @API_DEFINES@ - SHARED_GLAPI = @SHARED_GLAPI@ -+SHARED_GALLIUM = @SHARED_GALLIUM@ - CFLAGS_NOVISIBILITY = @CPPFLAGS@ @CFLAGS@ \ - $(PIC_FLAGS) $(DEFINES) - CXXFLAGS_NOVISIBILITY = @CPPFLAGS@ @CXXFLAGS@ \ -@@ -112,7 +113,11 @@ GALLIUM_DRIVERS_DIRS = @GALLIUM_DRIVERS_DIRS@ - GALLIUM_WINSYS_DIRS = @GALLIUM_WINSYS_DIRS@ - GALLIUM_TARGET_DIRS = @GALLIUM_TARGET_DIRS@ - GALLIUM_STATE_TRACKERS_DIRS = @GALLIUM_STATE_TRACKERS_DIRS@ --GALLIUM_AUXILIARIES = $(TOP)/src/gallium/auxiliary/libgallium.a -+ifeq (@SHARED_GALLIUM@,1) -+GALLIUM_AUXILIARIES = $(TOP)/src/gallium/auxiliary/.libs/libgallium.so -+else -+GALLIUM_AUXILIARIES = $(TOP)/src/gallium/auxiliary/.libs/libgallium.a -+endif - GALLIUM_DRIVERS = $(foreach DIR,$(GALLIUM_DRIVERS_DIRS),$(TOP)/src/gallium/drivers/$(DIR)/lib$(DIR).a) - - # Driver specific build vars -diff --git a/configure.ac b/configure.ac -index ee19d0a..d5fbbc2 100644 --- a/configure.ac +++ b/configure.ac -@@ -698,6 +698,19 @@ fi - AC_SUBST([SHARED_GLAPI]) - AM_CONDITIONAL(HAVE_SHARED_GLAPI, test $SHARED_GLAPI = 1) +@@ -733,6 +733,19 @@ + fi + AM_CONDITIONAL(HAVE_SHARED_GLAPI, test "x$enable_shared_glapi" = xyes) +AC_ARG_ENABLE([shared-gallium], + [AS_HELP_STRING([--enable-shared-gallium], @@ -45,363 +18,31 @@ index ee19d0a..d5fbbc2 100644 +AM_CONDITIONAL(HAVE_SHARED_GALLIUM, test $SHARED_GALLIUM = 1) + dnl - dnl Driver configuration. Options are xlib, dri and osmesa right now. - dnl More later: fbdev, ... -@@ -1810,6 +1823,7 @@ if test "x$enable_gallium_llvm" = xyes; then - else - MESA_LLVM=0 - fi -+AM_CONDITIONAL(HAVE_MESA_LLVM, test "x$MESA_LLVM" = x1) - - dnl Directory for XVMC libs - AC_ARG_WITH([xvmc-libdir], -@@ -2070,6 +2084,7 @@ AC_CONFIG_FILES([configs/current - Makefile - src/Makefile - src/gallium/Makefile -+ src/gallium/auxiliary/Makefile - src/gallium/auxiliary/pipe-loader/Makefile - src/gallium/state_trackers/clover/Makefile - src/gallium/drivers/Makefile -diff --git a/src/gallium/auxiliary/Makefile b/src/gallium/auxiliary/Makefile -deleted file mode 100644 -index 3ba3f9c..0000000 ---- a/src/gallium/auxiliary/Makefile -+++ /dev/null -@@ -1,47 +0,0 @@ --TOP = ../../.. --include $(TOP)/configs/current -- --LIBNAME = gallium -- --# get source lists --include Makefile.sources -- --C_SOURCES += $(GENERATED_SOURCES) -- --ifeq ($(MESA_LLVM),1) --C_SOURCES += \ -- $(GALLIVM_SOURCES) --CPP_SOURCES += \ -- $(GALLIVM_CPP_SOURCES) -- --# LLVM >= 3.2 requires -fno-rtti --ifeq ($(shell expr `echo $(LLVM_VERSION) | sed -e 's/\([0-9]\)\.\([0-9]\)/\10\2/g'` \>= 302),1) --CXXFLAGS += -fno-rtti --endif --endif -- -- --include ../Makefile.template -- --default install clean: %: subdirs-% -- --subdirs-%: -- @for dir in $(SUBDIRS) ; do \ -- if [ -d $$dir ] ; then \ -- (cd $$dir && $(MAKE) $*) || exit 1; \ -- fi \ -- done -- --indices/u_indices_gen.c: indices/u_indices_gen.py -- $(PYTHON2) $< > $@ -- --indices/u_unfilled_gen.c: indices/u_unfilled_gen.py -- $(PYTHON2) $< > $@ -- --util/u_format_srgb.c: util/u_format_srgb.py -- $(PYTHON2) $< > $@ -- --util/u_format_table.c: util/u_format_table.py util/u_format_pack.py util/u_format_parse.py util/u_format.csv -- $(PYTHON2) util/u_format_table.py util/u_format.csv > $@ -- --# DO NOT DELETE -diff --git a/src/gallium/auxiliary/Makefile.am b/src/gallium/auxiliary/Makefile.am -new file mode 100644 -index 0000000..2c6bde1 ---- /dev/null + dnl Driver specific build directories + dnl +--- a/src/gallium/auxiliary/Makefile.am +++ b/src/gallium/auxiliary/Makefile.am -@@ -0,0 +1,48 @@ -+TOP = $(top_srcdir) -+ -+include $(srcdir)/Makefile.sources -+ -+AM_CFLAGS = \ -+ -I$(top_srcdir)/src/gallium/include \ -+ @CPPFLAGS@ @CFLAGS@ @DEFINES@ -+ -+AM_CXXFLAGS = \ -+ -I$(top_srcdir)/src/gallium/include \ -+ @CPPFLAGS@ @CXXFLAGS@ @DEFINES@ -+ -+C_SOURCES += $(GENERATED_SOURCES) -+ -+if HAVE_MESA_LLVM -+C_SOURCES += \ -+ $(GALLIVM_SOURCES) -+CPP_SOURCES = \ -+ $(GALLIVM_CPP_SOURCES) -+ -+AM_CFLAGS += @LLVM_CPPFLAGS@ @LLVM_CFLAGS@ -+AM_CXXFLAGS += @LLVM_CPPFLAGS@ @LLVM_CXXFLAGS@ -+endif -+ -+lib_LTLIBRARIES = libgallium.la -+libgallium_la_SOURCES = $(C_SOURCES) $(CPP_SOURCES) -+libgallium_la_LDFLAGS = -no-undefined @LLVM_LDFLAGS@ @LLVM_LIBS@ -+if HAVE_SHARED_GALLIUM -+AM_CFLAGS += -shared -+AM_CXXFLAGS += -shared -+else -+AM_CFLAGS += -static @VISIBILITY_CFLAGS@ -+AM_CXXFLAGS += -static @VISIBILITY_CXXFLAGS@ -+endif -+ -+indices/u_indices_gen.c: indices/u_indices_gen.py -+ $(PYTHON2) $< > $@ -+ -+indices/u_unfilled_gen.c: indices/u_unfilled_gen.py -+ $(PYTHON2) $< > $@ -+ -+util/u_format_srgb.c: util/u_format_srgb.py -+ $(PYTHON2) $< > $@ -+ -+util/u_format_table.c: util/u_format_table.py util/u_format_pack.py util/u_format_parse.py util/u_format.csv -+ $(PYTHON2) util/u_format_table.py util/u_format.csv > $@ -+ -+# DO NOT DELETE -diff --git a/src/gallium/drivers/llvmpipe/Makefile b/src/gallium/drivers/llvmpipe/Makefile -index 35f8fe8..952fc94 100644 ---- a/src/gallium/drivers/llvmpipe/Makefile -+++ b/src/gallium/drivers/llvmpipe/Makefile -@@ -68,8 +68,13 @@ lp_tile_soa.c: lp_tile_soa.py ../../auxiliary/util/u_format_parse.py ../../auxil - $(PYTHON2) $(PYTHON_FLAGS) lp_tile_soa.py ../../auxiliary/util/u_format.csv > $@ - - LDFLAGS += $(LLVM_LDFLAGS) --LIBS += -L../../auxiliary/ -lgallium libllvmpipe.a -+ifeq ($(SHARED_GALLIUM),1) -+LIBS = libllvmpipe.a -+LDADD = $(GALLIUM_AUXILIARIES) $(LLVM_LIBS) $(GL_LIB_DEPS) -+else -+LIBS += $(GALLIUM_AUXILIARIES) libllvmpipe.a - LDADD += $(LLVM_LIBS) $(GL_LIB_DEPS) -+endif - LD=$(CXX) +@@ -3,13 +3,19 @@ + include Makefile.sources + include $(top_srcdir)/src/gallium/Automake.inc - $(PROGS): lp_test_main.o libllvmpipe.a -diff --git a/src/gallium/targets/Makefile.dri b/src/gallium/targets/Makefile.dri -index 5b6676d..d04be29 100644 ---- a/src/gallium/targets/Makefile.dri -+++ b/src/gallium/targets/Makefile.dri -@@ -6,6 +6,10 @@ LDFLAGS += $(LLVM_LDFLAGS) - DRIVER_EXTRAS = $(LLVM_LIBS) - endif +-noinst_LTLIBRARIES = libgallium.la +- + AM_CFLAGS = \ + -I$(top_srcdir)/src/gallium/auxiliary/util \ +- $(GALLIUM_CFLAGS) $(VISIBILITY_CFLAGS) ++ $(GALLIUM_CFLAGS) -+ifeq ($(SHARED_GALLIUM),1) -+LDFLAGS += -L$(TOP)/src/gallium/auxiliary/.libs -Wl,--as-needed -lgallium -Wl,--no-as-needed -+endif +-AM_CXXFLAGS = $(VISIBILITY_CXXFLAGS) ++AM_CXXFLAGS = + - MESA_MODULES = \ - $(TOP)/src/mesa/libmesagallium.a \ - $(GALLIUM_AUXILIARIES) -diff --git a/src/gallium/targets/opencl/Makefile.am b/src/gallium/targets/opencl/Makefile.am -index 4c89e36..ec1fe7f 100644 ---- a/src/gallium/targets/opencl/Makefile.am -+++ b/src/gallium/targets/opencl/Makefile.am -@@ -8,7 +8,7 @@ libOpenCL_la_LDFLAGS = \ - - libOpenCL_la_LIBADD = \ - $(top_builddir)/src/gallium/state_trackers/clover/libclover.la \ -- $(top_builddir)/src/gallium/auxiliary/libgallium.a \ -+ $(GALLIUM_AUXILIARIES) \ - $(GALLIUM_PIPE_LOADER_LIBS) $(LIBUDEV_LIBS) \ - -ldl \ - -lclangCodeGen \ -diff --git a/src/gallium/targets/pipe-loader/Makefile b/src/gallium/targets/pipe-loader/Makefile -index 596539c..f17a69b 100644 ---- a/src/gallium/targets/pipe-loader/Makefile -+++ b/src/gallium/targets/pipe-loader/Makefile -@@ -21,8 +21,7 @@ PIPE_LIBS = \ - $(TOP)/src/gallium/drivers/identity/libidentity.a \ - $(TOP)/src/gallium/drivers/galahad/libgalahad.a \ - $(TOP)/src/gallium/drivers/trace/libtrace.a \ -- $(TOP)/src/gallium/drivers/rbug/librbug.a \ -- $(GALLIUM_AUXILIARIES) -+ $(TOP)/src/gallium/drivers/rbug/librbug.a - - PIPE_SYS = $(LIBDRM_LIB) -lm -lpthread $(DLOPEN_LIBS) - -@@ -78,10 +77,16 @@ endif - - # LLVM - ifeq ($(MESA_LLVM),1) -- PIPE_SYS += $(LLVM_LIBS) -+ PIPE_SYS += $(LLVM_LIBS) $(GALLIUM_AUXILIARIES) - PIPE_LDFLAGS += $(LLVM_LDFLAGS) - endif - -+ifeq ($(SHARED_GALLIUM),1) -+ PIPE_SYS += $(GALLIUM_AUXILIARIES) ++if HAVE_SHARED_GALLIUM ++lib_LTLIBRARIES = libgallium.la +else -+ PIPE_LIBS += $(GALLIUM_AUXILIARIES) ++noinst_LTLIBRARIES = libgallium.la ++AM_CFLAGS += $(VISIBILITY_CFLAGS) ++AM_CXXFLAGS += $(VISIBILITY_CXXFLAGS) +endif -+ - # determine the targets/sources - _PIPE_TARGETS_CC = - _PIPE_TARGETS_CXX = -diff --git a/src/gallium/targets/va-r300/Makefile b/src/gallium/targets/va-r300/Makefile -index 7c89c79..a618698 100644 ---- a/src/gallium/targets/va-r300/Makefile -+++ b/src/gallium/targets/va-r300/Makefile -@@ -11,7 +11,7 @@ PIPE_DRIVERS = \ - $(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \ - $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \ - $(TOP)/src/gallium/drivers/trace/libtrace.a \ -- $(TOP)/src/gallium/auxiliary/libgallium.a -+ $(GALLIUM_AUXILIARIES) - - C_SOURCES = \ - target.c \ -diff --git a/src/gallium/targets/va-r600/Makefile b/src/gallium/targets/va-r600/Makefile -index 50e7fa5..5e94191 100644 ---- a/src/gallium/targets/va-r600/Makefile -+++ b/src/gallium/targets/va-r600/Makefile -@@ -11,7 +11,7 @@ PIPE_DRIVERS = \ - $(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \ - $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \ - $(TOP)/src/gallium/drivers/trace/libtrace.a \ -- $(TOP)/src/gallium/auxiliary/libgallium.a -+ $(GALLIUM_AUXILIARIES) - - C_SOURCES = \ - target.c \ -diff --git a/src/gallium/targets/va-softpipe/Makefile b/src/gallium/targets/va-softpipe/Makefile -index 536cb7b..2fd74c7 100644 ---- a/src/gallium/targets/va-softpipe/Makefile -+++ b/src/gallium/targets/va-softpipe/Makefile -@@ -9,7 +9,7 @@ DRIVER_INCLUDES = - PIPE_DRIVERS = \ - $(TOP)/src/gallium/winsys/sw/xlib/libws_xlib.a \ - $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \ -- $(TOP)/src/gallium/auxiliary/libgallium.a -+ $(GALLIUM_AUXILIARIES) - - C_SOURCES = \ - $(TOP)/src/gallium/auxiliary/vl/vl_winsys_xsp.c -diff --git a/src/gallium/targets/vdpau-nouveau/Makefile b/src/gallium/targets/vdpau-nouveau/Makefile -index bb971c6..2f2b7ff 100644 ---- a/src/gallium/targets/vdpau-nouveau/Makefile -+++ b/src/gallium/targets/vdpau-nouveau/Makefile -@@ -12,7 +12,7 @@ PIPE_DRIVERS = \ - $(TOP)/src/gallium/drivers/nvc0/libnvc0.a \ - $(TOP)/src/gallium/drivers/nouveau/libnouveau.a \ - $(TOP)/src/gallium/drivers/trace/libtrace.a \ -- $(TOP)/src/gallium/auxiliary/libgallium.a -+ $(GALLIUM_AUXILIARIES) - - - C_SOURCES = \ -diff --git a/src/gallium/targets/vdpau-r300/Makefile b/src/gallium/targets/vdpau-r300/Makefile -index 1ada550..7cf3345 100644 ---- a/src/gallium/targets/vdpau-r300/Makefile -+++ b/src/gallium/targets/vdpau-r300/Makefile -@@ -12,7 +12,7 @@ PIPE_DRIVERS = \ - $(TOP)/src/gallium/drivers/rbug/librbug.a \ - $(TOP)/src/gallium/drivers/trace/libtrace.a \ - $(TOP)/src/gallium/drivers/galahad/libgalahad.a \ -- $(TOP)/src/gallium/auxiliary/libgallium.a \ -+ $(GALLIUM_AUXILIARIES) \ - $(TOP)/src/mesa/libmesagallium.a - - C_SOURCES = \ -diff --git a/src/gallium/targets/vdpau-r600/Makefile b/src/gallium/targets/vdpau-r600/Makefile -index 05e0b4f..04b1529 100644 ---- a/src/gallium/targets/vdpau-r600/Makefile -+++ b/src/gallium/targets/vdpau-r600/Makefile -@@ -9,7 +9,7 @@ PIPE_DRIVERS = \ - $(TOP)/src/gallium/drivers/r600/libr600.a \ - $(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \ - $(TOP)/src/gallium/drivers/trace/libtrace.a \ -- $(TOP)/src/gallium/auxiliary/libgallium.a -+ $(GALLIUM_AUXILIARIES) - - C_SOURCES = \ - target.c \ -diff --git a/src/gallium/targets/vdpau-radeonsi/Makefile b/src/gallium/targets/vdpau-radeonsi/Makefile -index 6dd2be9..3446f56 100644 ---- a/src/gallium/targets/vdpau-radeonsi/Makefile -+++ b/src/gallium/targets/vdpau-radeonsi/Makefile -@@ -12,7 +12,7 @@ PIPE_DRIVERS = \ - $(TOP)/src/gallium/drivers/trace/libtrace.a \ - $(TOP)/src/gallium/drivers/rbug/librbug.a \ - $(TOP)/src/gallium/drivers/noop/libnoop.a \ -- $(TOP)/src/gallium/auxiliary/libgallium.a -+ $(GALLIUM_AUXILIARIES) - - C_SOURCES = \ - target.c \ -diff --git a/src/gallium/targets/vdpau-softpipe/Makefile b/src/gallium/targets/vdpau-softpipe/Makefile -index 41cc514..a894540 100644 ---- a/src/gallium/targets/vdpau-softpipe/Makefile -+++ b/src/gallium/targets/vdpau-softpipe/Makefile -@@ -9,7 +9,7 @@ DRIVER_INCLUDES = - PIPE_DRIVERS = \ - $(TOP)/src/gallium/winsys/sw/xlib/libws_xlib.a \ - $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \ -- $(TOP)/src/gallium/auxiliary/libgallium.a -+ $(GALLIUM_AUXILIARIES) - - C_SOURCES = \ - $(TOP)/src/gallium/auxiliary/vl/vl_winsys_xsp.c -diff --git a/src/gallium/targets/xvmc-nouveau/Makefile b/src/gallium/targets/xvmc-nouveau/Makefile -index f81f409..1665ca0 100644 ---- a/src/gallium/targets/xvmc-nouveau/Makefile -+++ b/src/gallium/targets/xvmc-nouveau/Makefile -@@ -9,7 +9,7 @@ PIPE_DRIVERS = \ - $(TOP)/src/gallium/drivers/nvc0/libnvc0.a \ - $(TOP)/src/gallium/drivers/nouveau/libnouveau.a \ - $(TOP)/src/gallium/drivers/trace/libtrace.a \ -- $(TOP)/src/gallium/auxiliary/libgallium.a -+ $(GALLIUM_AUXILIARIES) - - - C_SOURCES = \ -diff --git a/src/gallium/targets/xvmc-r300/Makefile b/src/gallium/targets/xvmc-r300/Makefile -index 800f8d5..aed613e 100644 ---- a/src/gallium/targets/xvmc-r300/Makefile -+++ b/src/gallium/targets/xvmc-r300/Makefile -@@ -9,7 +9,7 @@ PIPE_DRIVERS = \ - $(TOP)/src/gallium/drivers/r300/libr300.a \ - $(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \ - $(TOP)/src/gallium/drivers/trace/libtrace.a \ -- $(TOP)/src/gallium/auxiliary/libgallium.a -+ $(GALLIUM_AUXILIARIES) - - C_SOURCES = \ - target.c \ -diff --git a/src/gallium/targets/xvmc-r600/Makefile b/src/gallium/targets/xvmc-r600/Makefile -index d9ce72f..92a0991 100644 ---- a/src/gallium/targets/xvmc-r600/Makefile -+++ b/src/gallium/targets/xvmc-r600/Makefile -@@ -9,7 +9,7 @@ PIPE_DRIVERS = \ - $(TOP)/src/gallium/drivers/r600/libr600.a \ - $(TOP)/src/gallium/winsys/radeon/drm/libradeonwinsys.a \ - $(TOP)/src/gallium/drivers/trace/libtrace.a \ -- $(TOP)/src/gallium/auxiliary/libgallium.a -+ $(GALLIUM_AUXILIARIES) - - C_SOURCES = \ - target.c \ -diff --git a/src/gallium/targets/xvmc-softpipe/Makefile b/src/gallium/targets/xvmc-softpipe/Makefile -index 35db16f..151567b 100644 ---- a/src/gallium/targets/xvmc-softpipe/Makefile -+++ b/src/gallium/targets/xvmc-softpipe/Makefile -@@ -9,7 +9,7 @@ DRIVER_INCLUDES = - PIPE_DRIVERS = \ - $(TOP)/src/gallium/winsys/sw/xlib/libws_xlib.a \ - $(TOP)/src/gallium/drivers/softpipe/libsoftpipe.a \ -- $(TOP)/src/gallium/auxiliary/libgallium.a -+ $(GALLIUM_AUXILIARIES) - C_SOURCES = \ - $(TOP)/src/gallium/auxiliary/vl/vl_winsys_xsp.c + libgallium_la_SOURCES = \ + $(C_SOURCES) \ -- To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/e1u3ucj-0002ym...@vasks.debian.org