diff --git a/Makefile b/Makefile index 1601079a48685..56858b3766bdb 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 42621267b2b7d..67fd549378c82 100644 --- a/ggml.c +++ b/ggml.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE #include "ggml.h" #if defined(_MSC_VER) || defined(__MINGW32__)