obmenugen 0.5 compiles OK with gdc 0.24 (patch inside)

Written for OpenBox Menu Generator by Pável Varela Rodríguez on 2011-12-30

The sources have not to be changed, only Makefile.

The patch (makefile.patch):

========= COPY FROM HERE =========
diff -r 95a123079c5e -r 9dc7d52ff8ec Makefile
--- a/Makefile Fri Dec 16 15:07:48 2011 -0500
+++ b/Makefile Fri Dec 30 11:49:26 2011 -0500
@@ -1,7 +1,7 @@
+CC=dmd
+CFLAGS=-v1 -I./src/ -O -release -inline -od$(OBJDIR)
 PREFIX=/usr/
 BUILDPREFIX=./usr/
-CC=dmd
-CFLAGS=-O -release -inline -od$(OBJDIR)
 OBJDIR=/tmp/

 EXECUTABLE=obmenugen
@@ -16,6 +16,7 @@

 $(EXECUTABLE): $(SOURCES)
+ mkdir -p $(BUILDPREFIX)/$(BINDIR)
  $(CC) $(CFLAGS) -of$(BUILDPREFIX)/$(BINDIR)$@ $^
========== TO HERE ===============

How to apply it:
1.- Save patch to makefile.patch
2.- Uncompress obmenugen-0.5-r72.tar.bz2
3.- 'cd obmenugen-0.5-r72/'
5.- patch Makefile: 'patch -p1 < /path/to/makefile.patch'
5.- make CC=gdmd obmenugen

Now you should have ./usr/bin/obmenugen compiled with gdc (binary is about 50% larger than the one compiled with dmd, but it rans at the exact same speed [measured])

All of you out there using GDC, enjoy this, and thanks again for using obmenugen

Read all announcements