-
Notifications
You must be signed in to change notification settings - Fork 314
fix compilation on macOS #171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -44,7 +51,7 @@ ifeq (${DARWIN_CC},) | |||
DARWIN_CC := $(shell which gcc) | |||
EXTRA_CFLAGS := | |||
else | |||
EXTRA_CFLAGS := -fvectorize -fslp-vectorize -fslp-vectorize-aggressive -pthread | |||
EXTRA_CFLAGS := -fvectorize -fslp-vectorize -pthread |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang has deprecated this flag
#CFLAGS += -march=pentium3 -sse | ||
CFLAGS += -march=native |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should i re-include -std=gnu99
?
@@ -85,6 +85,7 @@ if [ ! -z "$selected_sdk" ]; then | |||
|
|||
# Remove the "u" if 10.4u Universal SDK is used. | |||
min_str="${min_str%%u}" | |||
min_str="${min_str:-10.14}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some safety net
Merged into dev branch. |
These were the changes I needed to get working on macOS 10.12.3 and homebrew.
I had to do
make
twice, and there are a few warnings leftover from clang about unused linker flags, but it seems to work well enough.I haven't tested these changes with macPorts.