From 5db0f4d5171bb5578497fd996a1a75601852acdf Mon Sep 17 00:00:00 2001 From: Ge Wang Date: Tue, 31 Dec 2024 16:06:31 -0800 Subject: [PATCH] minor makefile.mac cleanup --- src/core/makefile.x/makefile.mac | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/core/makefile.x/makefile.mac b/src/core/makefile.x/makefile.mac index 951842be4..6ccd98c3d 100644 --- a/src/core/makefile.x/makefile.mac +++ b/src/core/makefile.x/makefile.mac @@ -32,12 +32,14 @@ CFLAGS+= -D__MACOSX_CORE__ $(FORCE_M32) $(ISYSROOT) CFLAGSDEPEND+= -D__MACOSX_CORE__ $(FORCE_M32) $(ISYSROOT) FRAMEWORKS+= CoreAudio CoreMIDI CoreFoundation IOKit Carbon AppKit Foundation +# linker assumes CXX -- e.g., g++ LDFLAGS+= $(FORCE_M32) $(ISYSROOT) $(addprefix -framework ,$(FRAMEWORKS)) \ - $(LINK_EXTRAS) -lc++ -lm + $(LINK_EXTRAS) -lm +# if linking using CC -- e.g., gcc -- add -lc++ +# LDFLAGS+= -lc++ SF_CSRCS+= util_sndfile.c - # this is to link properly on leopard... MACOSX_DEPLOYMENT_TARGET=10.9 export MACOSX_DEPLOYMENT_TARGET @@ -47,7 +49,6 @@ export MACOSX_DEPLOYMENT_TARGET # by default, ChucK uses a pre-configured libsndfile... # uncomment the next 3 lines to use libsndfile on your system #----------------------------------------------------------------------------- -#FLAGS+= -D__CK_SNDFILE_NATIVE__ -#LIBS+= -lsndfile -#SF_OBJ= - +# FLAGS+= -D__CK_SNDFILE_NATIVE__ +# LIBS+= -lsndfile +# SF_OBJ=