https://bitbucket.org/purelang/pure-lang/issue/29/pure-stldict-08-fails-to-build-on-os-x-108 --- Makefile.orig Fri Sep 26 00:34:35 2014 +0200 +++ Makefile Fri Sep 26 07:20:14 2014 +0200 @@ -14,10 +14,10 @@ libdir = $(shell pkg-config pure --variable libdir) installdir = $(addprefix $(DESTDIR), $(libdir)/pure) -MOD_CXXFLAGS = $(PIC) $(shell pkg-config pure --cflags) $(CFLAGS) $(CPPFLAGS) +MOD_CXXFLAGS = $(PIC) $(shell pkg-config pure --cflags) $(CXXFLAGS) $(CPPFLAGS) MOD_LDFLAGS = $(shell pkg-config pure --libs) $(LDFLAGS) -CFLAGS = -g -O2 -Wall -Wextra +CXXFLAGS = -g -O2 -Wall -Wextra ifeq "$(DLL)" ".dylib" DLL_FLAGS = -install_name "$(libdir)/pure/$@" --- pure-stlmap/Makefile.orig Fri Sep 26 00:34:35 2014 +0200 +++ pure-stlmap/Makefile Fri Sep 26 07:20:14 2014 +0200 @@ -11,10 +11,10 @@ installdir = $(addprefix $(DESTDIR), $(libdir)/pure) MOD_CXXFLAGS = $(PIC) $(shell pkg-config pure --cflags) -I.. \ - $(CFLAGS) $(CPPFLAGS) + $(CXXFLAGS) $(CPPFLAGS) MOD_LDFLAGS = $(shell pkg-config pure --libs) $(LDFLAGS) -CFLAGS = -g -O2 -Wall -Wextra +CXXFLAGS = -g -O2 -Wall -Wextra ifneq "$(DLL)" ".so" # additional libraries to be linked (Mac/Windows only) EXTRA_LIBS = ../stlbase$(DLL) --- pure-stlvec/Makefile.orig Fri Sep 26 00:34:35 2014 +0200 +++ pure-stlvec/Makefile Fri Sep 26 07:20:14 2014 +0200 @@ -12,10 +12,10 @@ MOD_CXXFLAGS = $(PIC) $(shell pkg-config pure --cflags) -I.. \ - $(CFLAGS) $(CPPFLAGS) + $(CXXFLAGS) $(CPPFLAGS) MOD_LDFLAGS = $(shell pkg-config pure --libs) $(LDFLAGS) -CFLAGS = -g -O2 -Wall -Wextra +CXXFLAGS = -g -O2 -Wall -Wextra ifneq "$(DLL)" ".so" # additional libraries to be linked (Mac/Windows only) EXTRA_LIBS = ../stlbase$(DLL)