Index: src/config.h
--- src/config.h.orig	2025-09-30 10:56:17.949392854 +0200
+++ src/config.h	2025-10-03 11:04:31.302581000 +0200
@@ -31,7 +31,7 @@
 
 #define WITH_FLOAT 1
 #define WITH_REFERENCE 1
-#define WITH_DRAW 1
+#undef WITH_DRAW
 #define WITH_SQL 1
 #define WITH_STATISTIC 0
 #define WITH_COMPILATION_INFO 1
Index: src/heaputl.c
--- src/heaputl.c.orig	2025-04-07 14:39:41.000000000 +0200
+++ src/heaputl.c	2025-10-03 11:04:31.302689000 +0200
@@ -38,8 +38,8 @@
 #include "stdio.h"
 #if HAS_GETRLIMIT
 /* In FreeBSD it is necessary to include <sys/types.h> before <sys/resource.h> */
-#include "sys/types.h"
-#include "sys/resource.h"
+#include <sys/types.h>
+#include <sys/resource.h>
 #endif
 
 #include "common.h"
Index: src/makefile
--- src/makefile.orig	2025-09-30 10:56:18.013392759 +0200
+++ src/makefile	2025-10-03 11:04:31.302806000 +0200
@@ -4,7 +4,7 @@
 #   make
 # If you are under windows you should use MinGW with mk_mingw.mak, mk_nmake.mak or mk_msys.mak instead.
 
-# CFLAGS =
+CFLAGS =
 # CFLAGS = -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
 # CFLAGS = -O2 -fomit-frame-pointer -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
 # CFLAGS = -O2 -g -ffunction-sections -fdata-sections $(INCLUDE_OPTIONS) $(CC_OPT_LINK_TIME_OPTIMIZATION) -Wall -Wextra -Wswitch-default -Wswitch-enum -Wcast-qual -Waggregate-return -Wwrite-strings -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith -Wmissing-noreturn -Wno-multichar -Wc++-compat
@@ -13,7 +13,7 @@
 # CFLAGS = -O2 -g -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith -ftrapv
 # CFLAGS = -O2 -g -x c++ -Wall -Winline -Wconversion -Wshadow -Wpointer-arith
 # CFLAGS = -O2 -g -ffunction-sections -fdata-sections -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith -ftrapv
-CFLAGS = -O2 -g -ffunction-sections -fdata-sections $(INCLUDE_OPTIONS) $(CC_OPT_LINK_TIME_OPTIMIZATION) -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
+CFLAGS = -O2 -ffunction-sections -fdata-sections $(INCLUDE_OPTIONS) $(CC_OPT_LINK_TIME_OPTIMIZATION)
 # CFLAGS = -O2 -g -ffunction-sections -fdata-sections $(INCLUDE_OPTIONS) $(CC_OPT_LINK_TIME_OPTIMIZATION) -Wall -Winline -Wconversion -Wshadow -Wpointer-arith
 # CFLAGS = -O2 -g -std=c99 -D_POSIX_SOURCE -ffunction-sections -fdata-sections $(INCLUDE_OPTIONS) -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
 # CFLAGS = -O2 -g -std=c1x -D_XOPEN_SOURCE -ffunction-sections -fdata-sections $(INCLUDE_OPTIONS) -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
@@ -22,7 +22,7 @@
 # CFLAGS = -O2 -g -pg -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith
 # CFLAGS = -O2 -fomit-frame-pointer -funroll-loops -Wall
 # CFLAGS = -O2 -funroll-loops -Wall -pg
-LDFLAGS = -Wl,--gc-sections
+LDFLAGS =
 # LDFLAGS = -pg
 # LDFLAGS = -pg -lc_p
 SYSTEM_LIBS =
@@ -35,12 +35,12 @@
 SYSTEM_MATH_LIBS = -lm
 ALL_SYSTEM_LIBS = $(SYSTEM_LIBS) $(SYSTEM_BIGINT_LIBS) $(SYSTEM_CONSOLE_LIBS) $(SYSTEM_DATABASE_LIBS) $(SYSTEM_DRAW_LIBS) $(SYSTEM_MATH_LIBS)
 SEED7_LIB = seed7_05.a
-DRAW_LIB = s7_draw.a
+DRAW_LIB =
 CONSOLE_LIB = s7_con.a
 DATABASE_LIB = s7_db.a
 COMP_DATA_LIB = s7_data.a
 COMPILER_LIB = s7_comp.a
-ALL_S7_LIBS = ../bin/$(COMPILER_LIB) ../bin/$(COMP_DATA_LIB) ../bin/$(DRAW_LIB) ../bin/$(CONSOLE_LIB) ../bin/$(DATABASE_LIB) ../bin/$(SEED7_LIB)
+ALL_S7_LIBS = ../bin/$(COMPILER_LIB) ../bin/$(COMP_DATA_LIB) ../bin/$(CONSOLE_LIB) ../bin/$(DATABASE_LIB) ../bin/$(SEED7_LIB)
 # CC = g++
 CC = gcc
 AR = ar
@@ -64,7 +64,7 @@
        tim_unx.o
 OBJ = $(MOBJ)
 SEED7_LIB_OBJ = $(ROBJ) $(DOBJ)
-DRAW_LIB_OBJ = gkb_rtl.o drw_x11.o gkb_x11.o fwd_x11.o
+DRAW_LIB_OBJ =
 CONSOLE_LIB_OBJ = kbd_rtl.o con_inf.o kbd_inf.o kbd_poll.o trm_inf.o trm_cap.o fwd_term.o
 DATABASE_LIB_OBJ = sql_base.o sql_db2.o sql_fire.o sql_ifx.o sql_lite.o sql_my.o sql_oci.o \
                    sql_odbc.o sql_post.o sql_srv.o sql_tds.o
Index: src/objutl.c
--- src/objutl.c.orig	2025-08-14 10:03:08.000000000 +0200
+++ src/objutl.c	2025-10-03 11:04:31.302925000 +0200
@@ -842,7 +842,9 @@
             object->value.winValue->usage_count != 0) {
           object->value.winValue->usage_count--;
           if (object->value.winValue->usage_count == 0) {
+#ifdef WITH_DRAW
             drwFree(object->value.winValue);
+#endif
           } /* if */
         } /* if */
         SET_UNUSED_FLAG(object);
Index: src/s7.c
--- src/s7.c.orig	2025-10-03 11:04:31.303054000 +0200
+++ src/s7.c	2025-10-03 11:04:47.158600000 +0200
@@ -425,7 +425,6 @@
         } else {
           setupFloat();
           setupBig();
-          drawInit();
           logMessage(printf("sourceFileArgument: \"%s\"\n",
                             striAsUnquotedCStri(option.sourceFileArgument)););
           logMessage(printf("protFileName: \"%s\"\n",
