Skip to content

Mac build fixes #140

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

Merged
merged 4 commits into from
Aug 6, 2018
Merged

Mac build fixes #140

merged 4 commits into from
Aug 6, 2018

Conversation

joshbuhler
Copy link
Contributor

Here are a few changes I had to make in order to get Dire Wolf to build on my mac, running macOS 10.13.4

Among the changes:

With these changes I'm able to build and get a running version of Dire Wolf on my Mac. Ideally, another Mac user should take a look at these changes and verify that they work for them as well.

Copy link

@ixdy ixdy left a comment

Choose a reason for hiding this comment

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

It might also be worth fixing this spurious warning?

diff --git a/Makefile.macosx b/Makefile.macosx
index 70af2ea..c4d2d60 100644
--- a/Makefile.macosx
+++ b/Makefile.macosx
@@ -44,7 +44,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
 endif
 
 # Change as required in support of the available libraries

Otherwise, this does allow me to build the dev branch (and 1.5beta3) on my High Sierra (10.13) macOS machine.

@wb2osz any chance this can get merged in before the 1.5 release is cut?

@@ -43,7 +43,7 @@ if [ $valid_flag -eq "0" ]; then

prompt="Select SDK to use:"

loc1=( $(find /Applications/XCode.app -type d -name "MacOSX10.*.sdk") )
loc1=( $(find /Applications/Xcode.app -type l -name "MacOSX10.*.sdk") )
Copy link

Choose a reason for hiding this comment

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

not sure if it's worth maintaining the old behavior, but \( -type d -o -type l \) would match both directories and links.

@ixdy
Copy link

ixdy commented Jul 16, 2018

(it's still a bit worrying that the first time you run make it fails to compile, but then works the second time.)

@wb2osz wb2osz merged commit b40d3fa into wb2osz:dev Aug 6, 2018
@wb2osz
Copy link
Owner

wb2osz commented Aug 6, 2018

Completed. This is now in the dev branch, currently 1.5 beta test.

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.

4 participants