X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=debian%2Fpatches%2Ffix-makefile.patch;fp=debian%2Fpatches%2Ffix-makefile.patch;h=08bfd5ba3b632ca5388d5f165329f66614364dbf;hb=d494bff0eb227aafb2afe4b37f5376100b46de55;hp=0000000000000000000000000000000000000000;hpb=5c2819897976f49d986b11ffdd5fe5a728318c91;p=rateit.git diff --git a/debian/patches/fix-makefile.patch b/debian/patches/fix-makefile.patch new file mode 100644 index 0000000..08bfd5b --- /dev/null +++ b/debian/patches/fix-makefile.patch @@ -0,0 +1,13 @@ +Description: Fix the Makefile + This patch adds hardening flags, makes the clean target work when there is nothing to clean and only links against needed libraries. +Forwarded: no +Author: Marius Gavrilescu +Last-Update: 2013-09-04 +--- a/Makefile ++++ b/Makefile +@@ -4,4 +4,4 @@ + cat rateit.glade | perl -e 'print "static unsigned char rateit_glade[]=";while(<>){s/"/\\"/g; s/^/"/; s/$$/\\n"/; print}print ";\n"' > rateit_glade.h + + rateit: rateit.c rateit_glade.h +- gcc -g -O2 rateit.c -o rateit `pkg-config --cflags --libs libglade-2.0` -export-dynamic ++ gcc $(shell pkg-config --cflags libglade-2.0) $(CFLAGS) $(CPPFLAGS) rateit.c -o rateit $(LDFLAGS) -lglade-2.0 -lgtk-x11-2.0 -lxml2 -lgobject-2.0 -lglib-2.0 -export-dynamic