Package: gr-usrp
Version: 0.6-1
Tags: patch

debian/rules correctly sets CFLAGS based on DEB_BUILD_OPTIONS=noopt, and
passes it on to ./configure; however, as gr-usrp consists primarily of
C++ code, which uses CXXFLAGS and not CFLAGS, the package still builds
with -O2 even with DEB_BUILD_OPTIONS=noopt.  Patch attached.

- Josh Triplett

--- gr-usrp-0.6.orig/debian/rules	2006-04-12 16:48:19.000000000 -0700
+++ gr-usrp-0.6/debian/rules	2006-04-12 16:43:53.000000000 -0700
@@ -30,7 +30,7 @@
 build-stamp:
 	dh_testdir
 	./bootstrap
-	CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
+	CFLAGS="$(CFLAGS)" CXXFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
 	$(MAKE)
 	touch build-stamp
 

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to