From 4eb54321f6aca2b5698180680535be42d7b96024 Mon Sep 17 00:00:00 2001
From: retoor <retoor@molodetz.nl>
Date: Sat, 12 Apr 2025 22:32:34 +0000
Subject: [PATCH] Fixed build.

---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 4dff067..b44358a 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ all: build build_rpylib run build_mingw
 
 # Variables for compiler and flags
 CC = gcc
-CFLAGS = -Ofast -Werror -Wall  -lreadline -lncurses  -lcurl -lgnutls -ljson-c -lsqlite3 -lm $(pkg-config --cflags --libs gnutls gmp) -lnettle -lssl -lcrypto 
+CFLAGS = -Ofast -Werror -Wall  -lreadline -lncurses  -lcurl -ljson-c -lsqlite3 -lm $(pkg-config --cflags --libs gnutls gmp) -lssl -lcrypto 
 
 # MinGW Variables
 MINGW_CC = x86_64-w64-mingw32-gcc  # Change to x86_64-w64-mingw32-gcc for 64-bit
@@ -10,6 +10,7 @@ MINGW_CFLAGS = -Ofast -Werror -Wall -lreadline -lcurl -lssl -lcrypto -ljson-c -l
 
 # Targets
 build: publish 
+	mkdir -p bin
 	$(CC) main.c $(CFLAGS) -o bin/r 
 	cp bin/r r
 	publish r