Skip to content

Commit f4b5115

Browse files
committed
Work around mysterious Mac build error.
This is a workaround for google#41. I don't understand why it should help. The only downside is that it increased on-disk binary size (but not in-memory size).
1 parent 6bd68ae commit f4b5115

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

guetzli.make

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ ifeq ($(config),release)
1919
INCLUDES += -I. -Ithird_party/butteraugli
2020
FORCE_INCLUDE +=
2121
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
22-
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -O3
22+
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -O3 -g
2323
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CFLAGS) -std=c++11
2424
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
2525
LIBS += -lpng -lgflags_nothreads -lz -lpthread
2626
LDDEPS +=
27-
ALL_LDFLAGS += $(LDFLAGS) -s
27+
ALL_LDFLAGS += $(LDFLAGS)
2828
LINKCMD = $(CXX) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
2929
define PREBUILDCMDS
3030
endef

premake5.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ workspace "guetzli"
55

66
flags { "C++11" }
77

8+
-- workaround for #41
9+
filter "action:gmake"
10+
symbols "On"
11+
812
filter "configurations:Debug"
913
symbols "On"
1014
filter "configurations:Release"

0 commit comments

Comments
 (0)