commit 22ad4700a4d540739248c9cd184c0ca9bbd1903a
parent 2a80ce043ba3cf880b33c1fa01ec37796a703ace
Author: falkTX <falktx@falktx.com>
Date: Mon, 24 May 2021 09:38:52 +0100
Move some compiler definitions to main file
Signed-off-by: falkTX <falktx@falktx.com>
Diffstat:
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/Makefile.base.mk b/Makefile.base.mk
@@ -310,7 +310,7 @@ OPENGL_LIBS = $(shell $(PKG_CONFIG) --libs gl)
endif
ifeq ($(MACOS),true)
-OPENGL_FLAGS = -DGL_SILENCE_DEPRECATION=1
+OPENGL_FLAGS = -DGL_SILENCE_DEPRECATION=1 -Wno-deprecated-declarations
OPENGL_LIBS = -framework OpenGL
endif
diff --git a/dgl/Makefile b/dgl/Makefile
@@ -16,10 +16,6 @@ LINK_FLAGS += $(DGL_LIBS)
# TODO fix these after pugl-upstream is done
BUILD_CXX_FLAGS += -Wno-attributes -Wno-extra -Wno-missing-field-initializers -Wno-narrowing
-ifeq ($(MACOS),true)
-BUILD_CXX_FLAGS += -DGL_SILENCE_DEPRECATION -Wno-deprecated-declarations
-endif
-
# ifneq ($(MACOS_OLD),true)
# needed by sofd right now, fix later
# BUILD_CXX_FLAGS += -Wno-type-limits -fpermissive