aboutsummaryrefslogtreecommitdiffstats
path: root/testing/drawterm/respect-env.patch
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2017-01-23 22:45:38 +0100
committerSören Tempel <soeren+git@soeren-tempel.net>2017-01-23 23:40:09 +0100
commit6d53bfcea40ff7b67de11a398f0dfc014543b060 (patch)
tree75afe20cafa01d415d01e52e20fd7355d4d03960 /testing/drawterm/respect-env.patch
parentf5150b2dd9707789a0fcacdde11f87fc15544ae3 (diff)
downloadaports-6d53bfcea40ff7b67de11a398f0dfc014543b060.tar.bz2
aports-6d53bfcea40ff7b67de11a398f0dfc014543b060.tar.xz
testing/drawterm: fix segfault when starting rio
Diffstat (limited to 'testing/drawterm/respect-env.patch')
-rw-r--r--testing/drawterm/respect-env.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/drawterm/respect-env.patch b/testing/drawterm/respect-env.patch
new file mode 100644
index 0000000000..7bf5db6810
--- /dev/null
+++ b/testing/drawterm/respect-env.patch
@@ -0,0 +1,22 @@
+diff -upr drawterm-20170119.orig/Make.unix drawterm-20170119/Make.unix
+--- drawterm-20170119.orig/Make.unix 2017-01-23 22:41:27.402630694 +0100
++++ drawterm-20170119/Make.unix 2017-01-23 22:41:43.879309573 +0100
+@@ -5,12 +5,15 @@ AR=ar
+ AS=as
+ RANLIB=ranlib
+ X11=/usr/X11R6
+-CC=gcc
+-CFLAGS=-Wall -Wno-missing-braces -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -I$(X11)/include -D_THREAD_SAFE $(PTHREAD) -O2
++X11INC=$(X11)/include
++X11LIB=$(X11)/lib
++CC?=gcc
++CFLAGS?=-O2
++CFLAGS+=-Wall -Wno-missing-braces -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -I$(X11INC) -D_THREAD_SAFE $(PTHREAD)
+ O=o
+ OS=posix
+ GUI=x11
+-LDADD=-L$(X11)/lib64 -L$(X11)/lib -lX11 -ggdb
++LDADD=-L$(X11LIB) -lX11 -ggdb
+ LDFLAGS=$(PTHREAD)
+ TARG=drawterm
+ # AUDIO=none