summaryrefslogtreecommitdiff
path: root/desktop/myGtkMenu/cflags.diff
diff options
context:
space:
mode:
authorHunter Sezen <orbea@fredslev.dk>2018-03-30 23:45:12 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-03-31 07:41:41 +0700
commit4c27112e99eca81702d437826aa4ede040899fe8 (patch)
tree33cc37b60015faf4076b1e1458d8027673460a2c /desktop/myGtkMenu/cflags.diff
parent155c5c812e833b0320f2288893713ed8652dbf7d (diff)
downloadslackbuilds-4c27112e99eca81702d437826aa4ede040899fe8.tar.gz
desktop/myGtkMenu: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/myGtkMenu/cflags.diff')
-rw-r--r--desktop/myGtkMenu/cflags.diff25
1 files changed, 25 insertions, 0 deletions
diff --git a/desktop/myGtkMenu/cflags.diff b/desktop/myGtkMenu/cflags.diff
new file mode 100644
index 0000000000..1d1d68cfcb
--- /dev/null
+++ b/desktop/myGtkMenu/cflags.diff
@@ -0,0 +1,25 @@
+--- Makefile.orig 2018-03-29 09:57:17.598456271 -0700
++++ Makefile 2018-03-29 09:58:53.390396527 -0700
+@@ -1,18 +1,20 @@
+
+ CC = gcc
+
+-CFLAGS = -Wall \
++DEF_FLAGS = -Wall \
+ -DG_DISABLE_DEPRECATED \
+ -DGDK_DISABLE_DEPRECATED \
+ -DGDK_PIXBUF_DISABLE_DEPRECATED \
+ -DGTK_DISABLE_DEPRECATED
+
++CFLAGS = -O2
++
+ GKT = `pkg-config gtk+-2.0 --cflags --libs`
+
+ all: myGtkMenu
+
+ myGtkMenu: main.c
+- $(CC) main.c -o myGtkMenu $(CFLAGS) $(GKT)
++ $(CC) main.c -o myGtkMenu $(CFLAGS) $(DEF_FLAGS) $(GKT)
+
+ clean:
+ rm -f *.o myGtkMenu