From ea257a370453fa59945f00a3a119993540653de8 Mon Sep 17 00:00:00 2001 From: Niko Date: Sun, 10 Feb 2019 14:16:25 -0500 Subject: [PATCH] attempt #4 --- graphics/opengl/PBR_Model_Loader/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/graphics/opengl/PBR_Model_Loader/Makefile b/graphics/opengl/PBR_Model_Loader/Makefile index 6c9cdf5..f6febab 100644 --- a/graphics/opengl/PBR_Model_Loader/Makefile +++ b/graphics/opengl/PBR_Model_Loader/Makefile @@ -48,12 +48,16 @@ CFLAGS := -g -Wall -O2 -ffunction-sections \ CFLAGS += $(INCLUDE) -D__SWITCH__ +# The following line works around an issue in newlib that produces a compilation +# error in glm. It will be removed as soon as this issue is resolved. +CFLAGS += -D_GLIBCXX_USE_C99_MATH_TR1 -D_LDBL_EQ_DBL + CXXFLAGS := $(CFLAGS) -fno-rtti -fno-exceptions ASFLAGS := -g $(ARCH) LDFLAGS = -specs=$(DEVKITPRO)/libnx/switch.specs -g $(ARCH) -Wl,-Map,$(notdir $*.map) -LIBS := -lnx +LIBS := -lnx -lglad -lEGL -lglapi -ldrm_nouveau -lnx -lm #--------------------------------------------------------------------------------- # list of directories containing libraries, this must be the top level containing