-
Notifications
You must be signed in to change notification settings - Fork 381
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
Build on OSX #22
Comments
Thanks for this. I've never tried building on OSX, but if this is working for you then great. I've added the extra flags you have above (I kept the original ones as well so as not to break the build for people on Linux), see commit 01d223d. It you could verify that the latest revision builds correctly on OSX that'd be great. With regards to sharing changes like this, generally it's best to fork the project on GitHub, then make the changes in a commit to your fork. You can then create a pull request from your fork to the original project through the GitHub web interface. In this case it's a simple commit, so I've just merged it manually. |
Sorry I was unclear -- I'm familiar with the fork, pull process. I was not familiar with Makefiles. Didn't realize it was as easy as adding the new library paths to the list. Thanks for the commit. Compiles fine from the repo now! great! |
Can you reopen this case? I can't compile even you add the extra flags. it still struck at the first PATH for both LDFLAGS and CFLAGS as shown below. ❯ make
cc -o sslscan -Wall -Wformat=2 -L/usr/local/opt/openssl/lib -L/usr/local/ssl/lib/ -I/usr/local/opt/openssl/include -I/usr/local/ssl/include/ -I/usr/local/ssl/include/openssl/ -DVERSION=\"1.10.6-rbsec-2-gc980c00-wip\" sslscan.c -lssl -lcrypto
ld: warning: directory not found for option '-L/usr/local/ssl/lib/' also I have a problem with
The workaround for me is just Did I miss anything during the installation? |
I was able to get it built on OSX by:
brew install openssl
And the following changes to the Makefile:
diff --git a/Makefile b/Makefile
index df6546c..76d4497 100644
--- a/Makefile
+++ b/Makefile
@@ -18,8 +18,8 @@ WARNINGS = -Wall -Wformat=2
DEFINES = -DVERSION="$(GIT_VERSION)"
for dynamic linkung
-LDFLAGS = -L/usr/local/ssl/lib/
-CFLAGS = -I/usr/local/ssl/include/ -I/usr/local/ssl/include/openssl/
+LDFLAGS = -L/usr/local/opt/openssl/lib
+CFLAGS = -I/usr/local/opt/openssl/include
LIBS = -lssl -lcrypto
for static linking
I'm not versed in how best to share this, or I'd do a pull request. Appreciate help from anyone!
The text was updated successfully, but these errors were encountered: