Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
purr-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jonathan Wilkes
purr-data
Commits
2beb101c
Commit
2beb101c
authored
5 years ago
by
Albert Gräf
Browse files
Options
Downloads
Patches
Plain Diff
Fix compile options for Xcode 10.
parent
4578df0e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!296
Mojave fixes part 2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Makefile
+6
-0
6 additions, 0 deletions
Makefile
packages/darwin_app/Makefile
+13
-11
13 additions, 11 deletions
packages/darwin_app/Makefile
pd/src/makefile.in
+4
-1
4 additions, 1 deletion
pd/src/makefile.in
with
23 additions
and
12 deletions
Makefile
+
6
−
0
View file @
2beb101c
...
...
@@ -77,6 +77,12 @@
.PHONY
:
all incremental checkout clean realclean dist
# Target platform (OSX/macOS only): On Mojave (10.14 with Xcode 10) this needs
# to be at least 10.9, which is the default now. With older Xcode versions you
# can try earlier versions (>= 10.4) if you need to compile for legacy OSX
# versions.
export
macos_target
=
10.9
# Installation prefix under which Pd-l2ork is installed (Linux only). If this
# isn't set, a default location will be used (usually /usr/local). NOTE: We
# *always* assume that this variable is set properly in the install targets
...
...
This diff is collapsed.
Click to expand it.
packages/darwin_app/Makefile
+
13
−
11
View file @
2beb101c
current
:
darwin_app
# Target platform: On Mojave (10.14 with Xcode 10) this needs to be at least
# 10.9, which is the default now. With older Xcode versions you can try
# earlier versions (>= 10.4) if you need to compile for legacy OSX versions.
ifeq
($(macos_target),)
macos_target
=
10.9
endif
# turn on weak linking and dlopen support
export
MACOSX_DEPLOYMENT_TARGET
=
10.4
export
MACOSX_DEPLOYMENT_TARGET
=
$(
macos_target
)
CWD
:=
$(
shell
pwd
)
BUILD_BASE
=
$(
CWD
)
/build
...
...
@@ -23,20 +30,15 @@ include $(BUILDLAYOUT_DIR)/Makefile.buildlayout
# http://hpc.sourceforge.net/
OPT_CFLAGS
=
-fast
-fPIC
-ftree-vectorize
FAT_FLAGS
=
-mmacosx-version-min
=
10.4
CFLAGS
=
-mmacosx-version-min
=
10.4
LDFLAGS
=
-mmacosx-version-min
=
10.4
FAT_FLAGS
=
-mmacosx-version-min
=
$(
macos_target
)
CFLAGS
=
-mmacosx-version-min
=
$(
macos_target
)
LDFLAGS
=
-mmacosx-version-min
=
$(
macos_target
)
# which CPU to compile for
TARGET_PLATFORM
:=
$(
shell
uname
-p
)
ifeq
($(TARGET_PLATFORM),i386)
# if on 10.6/Intel, then build as 64-bit with core2 as minimum CPU
ifeq
($(shell uname -r | sed 's|\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*|\1|'), 10)
OPT_CFLAGS
+=
-march
=
core2
-msse3
-mssse3
-mfpmath
=
sse
FAT_FLAGS
=
-mmacosx-version-min
=
10.6
else
OPT_CFLAGS
+=
-msse3
-mfpmath
=
sse
endif
# assume Intel 64-bit with core2 as minimum CPU
OPT_CFLAGS
+=
-march
=
core2
-msse3
-mssse3
-mfpmath
=
sse
else
OPT_CFLAGS
+=
-mcpu
=
7450
-mtune
=
7450
endif
...
...
This diff is collapsed.
Click to expand it.
pd/src/makefile.in
+
4
−
1
View file @
2beb101c
...
...
@@ -2,7 +2,10 @@
# support. Its safe on other platforms since gcc only checks this env var on
# Apple's gcc. <hans@at.or.at>
ifeq
($(shell uname -s),Darwin)
export
MACOSX_DEPLOYMENT_TARGET
=
10.4
ifeq
($(macos_target),)
macos_target
=
10.9
endif
export
MACOSX_DEPLOYMENT_TARGET
=
$(
macos_target
)
endif
VPATH
=
../obj:./
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment