Author: Michael R. Crusoe <michael.crusoe@gmail.com>
Description: Ensure that we don't accidentally include profile mode
--- vg.orig/deps/gfakluge/makefile.detuned
+++ vg/deps/gfakluge/makefile.detuned
@@ -1,5 +1,5 @@
 CXX?=g++
-CXXFLAGS:=-O0 -pipe -std=c++11 -pg -ggdb
+CXXFLAGS:=-O0 -pipe -std=c++11 -ggdb
 
 
 BIN_DIR:=bin
--- vg.orig/deps/sonLib/include.mk
+++ vg/deps/sonLib/include.mk
@@ -54,7 +54,7 @@
 cppflags_ultraDbg = -g -O1 -fno-inline -fno-omit-frame-pointer -fsanitize=address
 
 #Profile flags
-cflags_prof = -Wall -Werror --pedantic -pg -O3 -g -Wno-error=unused-result
+cflags_prof = -Wall -Werror --pedantic -O3 -g -Wno-error=unused-result
 
 #Flags to use
 ifndef CGL_DEBUG
--- vg.orig/deps/vowpal_wabbit/Makefile
+++ vg/deps/vowpal_wabbit/Makefile
@@ -103,7 +103,7 @@
 	cd vowpalwabbit; $(MAKE) -j $(NPROCS) things
 
 #Target-specific flags for a profiling build.  (Copied from line 70)
-vw_gcov: FLAGS = -std=c++0x $(CFLAGS) $(LDFLAGS) $(ARCH) $(WARN_FLAGS) -g -O0 -fprofile-arcs -ftest-coverage -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 $(BOOST_INCLUDE) $(JSON_INCLUDE) -pg  -fPIC #-DVW_LDA_NO_S
+vw_gcov: FLAGS = -std=c++0x $(CFLAGS) $(LDFLAGS) $(ARCH) $(WARN_FLAGS) -g -O0 -fprofile-arcs -ftest-coverage -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 $(BOOST_INCLUDE) $(JSON_INCLUDE) -fPIC #-DVW_LDA_NO_S
 vw_gcov: CXX = g++
 vw_gcov:
 	cd vowpalwabbit && env LDFLAGS="-fprofile-arcs -ftest-coverage -lgcov"; $(MAKE) -j $(NPROCS) things
@@ -115,7 +115,7 @@
 	cd library; $(MAKE) -j $(NPROCS) things
 
 #Target-specific flags for a profiling build.  (Copied from line 70)
-library_example_gcov: FLAGS = -std=c++0x $(CFLAGS) $(LDFLAGS) $(ARCH) $(WARN_FLAGS) -g -O0 -fprofile-arcs -ftest-coverage -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 $(BOOST_INCLUDE) $(JSON_INCLUDE) -pg  -fPIC #-DVW_LDA_NO_S
+library_example_gcov: FLAGS = -std=c++0x $(CFLAGS) $(LDFLAGS) $(ARCH) $(WARN_FLAGS) -g -O0 -fprofile-arcs -ftest-coverage -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 $(BOOST_INCLUDE) $(JSON_INCLUDE) -fPIC #-DVW_LDA_NO_S
 library_example_gcov: CXX = g++
 library_example_gcov: vw_gcov
 	cd library && env LDFLAGS="-fprofile-arcs -ftest-coverage -lgcov"; $(MAKE) things
