From 2788f373be034ea9aeb3ff6bfaabc6deaf59d344 Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Wed, 15 Mar 2023 02:52:31 -0700 Subject: [PATCH] Get the build working --- Makefile | 4 ++-- ggml.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 1601079a4..56858b376 100644 --- a/Makefile +++ b/Makefile @@ -30,8 +30,8 @@ endif # Compile flags # -CFLAGS = -I. -O3 -DNDEBUG -std=c11 -fPIC -CXXFLAGS = -I. -I./examples -O3 -DNDEBUG -std=c++11 -fPIC +CFLAGS = -I. -O3 -DNDEBUG -std=c11 -fPIC -g -fno-omit-frame-pointer +CXXFLAGS = -I. -I./examples -O3 -DNDEBUG -std=c++11 -fPIC -g -fno-omit-frame-pointer LDFLAGS = # OS specific diff --git a/ggml.c b/ggml.c index 42621267b..67fd54937 100644 --- a/ggml.c +++ b/ggml.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE #include "ggml.h" #if defined(_MSC_VER) || defined(__MINGW32__)