-
Notifications
You must be signed in to change notification settings - Fork 21
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
Adds an OS X Makefile #4
base: master
Are you sure you want to change the base?
Conversation
$(LD) $(COPTS) $(LDOPTS) $^ $(LIBS) -o $@ | ||
@echo $(LIBRARY) | ||
@echo $@ | ||
$(LD) $(COPTS) $(LDOPTS) $^ $(LIBS) -o $(LIBRARY) |
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.
I don't think these changes are necessary.
COPTS=-fPIC -O2 -m64 -Wall | ||
LDOPTS=-shared -Wl,-soname,$(LIBRARY) | ||
#CXXFLAGS=-std=c++11 | ||
COPTS=-fPIC -O2 -m64 -Wall -std=c++11 -c |
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.
There shouldn't be anything in this library that requires C++11 support
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.
c++11 is now required by MSP, and some new features we are looking to add (supporting multiple correlation functions) want to utilized std::shared_ptr, so this will be necessary going forward.
This PR adds an OS X Makefile.
I have done this in order to support builds of the CSM via conda-forge on OS X, Linux, and Windows. This is a widely used python package management environment that supports linking Python with C (C++) languages.
I have tested this on OS X 10.12.1 by building the shared library and accessing via our CyCSM Wrapper.