[botan-devel] build issue OSX clang

Jack Lloyd lloyd at randombit.net
Fri Jan 25 20:43:05 EST 2013


Can you try this patch:

#
# old_revision [09f7b23a3e25669f77905deb851448e84d6e9e06]
#
# patch "src/build-data/cc/clang.txt"
#  from [5afaffeb0b4d881babfb7a314ffeeb3c01de22c2]
#    to [eee347fa24e622bb47040848ea59f985e73832d6]
#
============================================================
--- src/build-data/cc/clang.txt 5afaffeb0b4d881babfb7a314ffeeb3c01de22c2
+++ src/build-data/cc/clang.txt eee347fa24e622bb47040848ea59f985e73832d6
@@ -27,6 +27,8 @@
 <so_link_flags>
 # The default works for GNU ld and several other Unix linkers
 default -> "$(CXX) -shared -fPIC -Wl,-soname,$(SONAME)"
+
+darwin  -> "$(CXX) -dynamiclib -fPIC -install_name $(LIBDIR)/$(SONAME)"
 </so_link_flags>

 <mach_opt>

and rerun configure.py

On Sat, Jan 26, 2013 at 11:42:57AM +1100, john skaller wrote:
> Just a note:
> 
> OSX 10.6 (Snow Leopard) clang++ 3.1(svn)
> 
> ranlib libbotan-1.10.a
> clang++ -m64 -shared -fPIC -Wl,-soname,libbotan-1.10.dylib.0  .....
> 
> ld: unknown option: -soname
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> make: *** [libbotan-1.10.dylib.0.4] Error 1
> 
> --
> john skaller
> skaller at users.sourceforge.net
> http://felix-lang.org
> 
> 
> 
> _______________________________________________
> botan-devel mailing list
> botan-devel at randombit.net
> http://lists.randombit.net/mailman/listinfo/botan-devel



More information about the botan-devel mailing list