Skip to content
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

fix compilation on macOS #171

Merged
merged 4 commits into from
Nov 24, 2018
Merged

fix compilation on macOS #171

merged 4 commits into from
Nov 24, 2018

Conversation

jedahan
Copy link
Contributor

@jedahan jedahan commented Oct 1, 2018

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.

@@ -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
Copy link
Contributor Author

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
Copy link
Contributor Author

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}"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just some safety net

@wb2osz
Copy link
Owner

wb2osz commented Nov 24, 2018

Merged into dev branch.
Thanks for helping to maintain the Mac OSX version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants