--- Makefile.orig	2022-04-01 11:30:07 UTC
+++ Makefile
@@ -1,40 +1,12 @@
 #  fotoxx Makefile
-#
-#  export CXX=g++          gnu compiler
-#  export CXX=clang++      clang compiler
-#  export DEBUG=x          debug build with address checking
 
-
-#  Try to fix warning from champlain-tile.h but none of this works
-#  CXXFLAGS += -D GTimeVal=GDateTime
-#  MAKEDIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
-#  CXXFLAGS += -I $(MAKEDIR)
-
-
-ifeq ($(CXX), clang++)     #  CLANG
-   ifdef DEBUG
-      CXXFLAGS += -Wall -g -O0 -fsanitize=address -Wno-stringop-truncation
-      LDFLAGS += -fsanitize=address
-   else
-      CXXFLAGS += -Wall -g -O2
-   endif
-else                       #  GCC
-   ifdef DEBUG
-      CXXFLAGS += -Wall -g -rdynamic -O0 -fsanitize=address                      \
-                           -Wno-format-truncation -Wno-stringop-truncation
-      LDFLAGS += -fsanitize=address
-   else
-      CXXFLAGS += -Wall -g -rdynamic -O2 -Wno-format-truncation -Wno-stringop-truncation
-   endif
-endif
-
 PKG_CONFIG ?= pkg-config
 
 CFLAGS = $(CXXFLAGS) $(CPPFLAGS) -c                                           \
          `$(PKG_CONFIG) --cflags gtk+-3.0 --libs champlain-gtk-0.12`
 
 LIBS = `$(PKG_CONFIG) --libs gtk+-3.0`                                              \
-         -lrt -lpthread -llcms2 -ltiff -lpng -ljpeg                                 \
+         -lrt -lpthread -llcms2 -ltiff -lpng -ljpeg -lexecinfo \
          -lclutter-1.0 -lclutter-gtk-1.0 -lchamplain-0.12 -lchamplain-gtk-0.12
 
 ALLFILES = fotoxx.o f.widgets.o f.file.o f.gallery.o f.albums.o f.area.o f.meta.o      \
