-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from ccrma/fluidsynth_api_v10
update FluidSynth.cpp to APIv10.1, fixed segfault in FluidSynth-play.ck example
- Loading branch information
Showing
3 changed files
with
78 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,32 @@ | ||
#----------------------------------- | ||
# makefile.mac | ||
# macOS-specific build configuration | ||
#----------------------------------- | ||
|
||
ARCHS?=x86_64 arm64 | ||
ARCHOPTS=$(addprefix -arch ,$(ARCHS)) | ||
FLUIDSYNTH_PREFIX=/usr/local | ||
|
||
# to build for the native architecture: (leave blank) | ||
# ARCHS?= | ||
# | ||
# to build for intel: | ||
# ARCHS?=x86_64 | ||
# | ||
# to build for apple silicon: | ||
# ARCHS?=arm64 | ||
# | ||
# to build a universal=binary chugin: | ||
# ARCHS?=x86_64 arm64 | ||
ARCHS?= | ||
|
||
FLUIDSYNTH_PREFIX=/opt/local | ||
# construct compiler option string | ||
ARCHOPTS=$(addprefix -arch ,$(ARCHS)) | ||
|
||
# compiler flags | ||
FLAGS+=-mmacosx-version-min=10.9 -I$(CK_SRC_PATH) $(ARCHOPTS) -I$(FLUIDSYNTH_PREFIX)/include | ||
LDFLAGS+=-mmacosx-version-min=10.9 -shared -lc++ $(ARCHOPTS) -L$(FLUIDSYNTH_PREFIX)/lib | ||
# linker flags | ||
LDFLAGS+=-mmacosx-version-min=10.9 -shared -lc++ $(ARCHOPTS) -L$(FLUIDSYNTH_PREFIX)/lib -lfluidsynth | ||
|
||
LD=clang++ | ||
# which C++ compiler | ||
CXX=clang++ | ||
# which linker to user | ||
LD=clang++ |