--- crorden/dcm2niix_console/makefile.orig	2021-06-15 02:26:33 UTC
+++ crorden/dcm2niix_console/makefile
@@ -1,8 +1,8 @@
 # Regular use
-CFLAGS=-s -O3
+CXXFLAGS?=-s -O3
 
 # Debugging
-#CFLAGS=-g
+#CXXFLAGS=-g
 
 #Leak tests:
 # https://clang.llvm.org/docs/AddressSanitizer.html
@@ -23,7 +23,7 @@ ifneq ($(OS),Windows_NT)
 		#CFLAGS= -O3
 		# CFLAGS=-O3 -sectcreate __TEXT __info_plist Info.plist
 		# rickr - ponder -sectcreate later
-		CFLAGS=-O3
+		CXXFLAGS=-O3
 		#Apple notarization requires a Info.plist
 		# For .app bundles, the Info.plist is a separate file, for executables it is appended as a section
 		#you can check that the Info.plist section has been inserted with either of these commands
@@ -33,4 +33,4 @@ ifneq ($(OS),Windows_NT)
 	endif
 endif
 all:
-	g++ $(CFLAGS) -I. $(JFLAGS) main_console.cpp nii_foreign.cpp nii_dicom.cpp jpg_0XC3.cpp ujpeg.cpp nifti1_io_core.cpp nii_ortho.cpp nii_dicom_batch.cpp  -o dcm2niix -DmyDisableOpenJPEG
+	$(CXX) $(CXXFLAGS) -I. $(JFLAGS) main_console.cpp nii_foreign.cpp nii_dicom.cpp jpg_0XC3.cpp ujpeg.cpp nifti1_io_core.cpp nii_ortho.cpp nii_dicom_batch.cpp  -o dcm2niix -DmyDisableOpenJPEG
