Package: fontforge
Version: 0.0.20051205-0.1
Tags: patch

The patch below makes DEB_BUILD_OPTIONS=noopt work for fontforge.
Without it getting it to build unoptimised is difficult, because
setting CFLAGS=... on the command line overrides all of the CFLAGS +=
in the rules file and breaks the build completely.

Thanks,
Ian.

diff -u fontforge-0.0.20051205/debian/rules fontforge-0.0.20051205/debian/rules
--- fontforge-0.0.20051205/debian/rules
+++ fontforge-0.0.20051205/debian/rules
@@ -14,7 +14,12 @@
 
 
 
-CFLAGS = -O2
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+  CFLAGS = -O0
+else
+  CFLAGS = -O2
+endif
+
 INSTALL = install
 INSTALL_FILE    = $(INSTALL) -p    -o root -g root  -m  644
 INSTALL_PROGRAM = $(INSTALL) -p    -o root -g root  -m  755


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to