Created
July 29, 2015 20:07
-
-
Save redhotpenguin/7c02f093f3891a311c6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Building Net::SSLeay on OSX 10.10.4 I ran into the following clang error using Perl 5.20: | |
phred@sisu ~/.cpanm/latest-build/Net-SSLeay-1.70 $ make | |
rm -f blib/arch/auto/Net/SSLeay/SSLeay.bundle | |
LD_RUN_PATH="/usr/lib" env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -L/usr -L/usr/lib -L/usr/local/lib -fstack-protector SSLeay.o -o blib/arch/auto/Net/SSLeay/SSLeay.bundle \ | |
-L/usr -L/usr/lib -lssl -lcrypto -lz \ | |
ld: library not found for -lgcc_s.10.4 | |
clang: error: linker command failed with exit code 1 (use -v to see invocation) | |
make: *** [blib/arch/auto/Net/SSLeay/SSLeay.bundle] Error 1 | |
I was able to resolve the error with a slight change to the Makefile generated by 'perl Makefile.PL': | |
phred@sisu ~/.cpanm/latest-build/Net-SSLeay-1.70 $ diff -u Makefile.busted Makefile | |
--- Makefile.busted 2015-07-29 13:07:03.000000000 -0700 | |
+++ Makefile 2015-07-29 13:07:18.000000000 -0700 | |
@@ -49,7 +49,7 @@ | |
DLSRC = dl_dlopen.xs | |
EXE_EXT = | |
FULL_AR = /usr/bin/ar | |
-LD = env MACOSX_DEPLOYMENT_TARGET=10.3 cc | |
+LD = env MACOSX_DEPLOYMENT_TARGET=10.9 cc | |
LDDLFLAGS = -bundle -undefined dynamic_lookup -L/usr -L/usr/lib -L/usr/local/lib -fstack-protector | |
LDFLAGS = -fstack-protector -L/usr -L/usr/lib -L/usr/local/lib | |
LIBC = |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment