Bug#368366: no line number info even with DEB_BUILD_OPTIONS="nostrip noopt debug"

Steve Langasek vorlon at debian.org
Sat Sep 16 09:17:46 UTC 2006


This patch /should/ be enough to get mesa built with debugging symbols:

diff -u mesa-6.5.0.cvs.20060524/debian/rules mesa-6.5.0.cvs.20060524/debian/rules
--- mesa-6.5.0.cvs.20060524/debian/rules
+++ mesa-6.5.0.cvs.20060524/debian/rules
@@ -66,6 +66,6 @@
 		mkdir -p build/$(1)-$(2)/lib/ ; \
 		ln -sf ../../gl-$(2)/lib/libGL.so build/$(1)-$(2)/lib/ ; \
 	fi
- 	make -C build/$(1)-$(2)/src SRC_DIRS=$(3) DEBIAN_DRIVERS_DIR=$(if $(call driver_map,$(1)-$(2),1),/$(call driver_map,$(1)-$(2),3))
+	make -C build/$(1)-$(2)/src CFLAGS="$(CFLAGS)" SRC_DIRS=$(3) DEBIAN_DRIVERS_DIR=$(if $(call driver_map,$(1)-$(2),1),/$(call driver_map,$(1)-$(2),3))
 	if test $(1) != gl ; then \
 		rm build/$(1)-$(2)/lib/libGL.so ; \


Unfortunately, upstream's build system is too fragile for this, and setting
CFLAGS in the environment appears to override other CFLAGS that need to be
set in order to build the drivers correctly.

More investigation needed.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon at debian.org                                   http://www.debian.org/




More information about the Pkg-mesa-devel mailing list