On Fri, 08 Aug 2008, Szakáts Viktor wrote: Hi, Viktor,
> Not supported in OSX :/ > --- > silver:harbour vszakats$ libtool --config > libtool: unknown option character `-' in: --config > Usage: libtool -static [-] file [...] [-filelist listfile[,dirname]] [- > arch_only arch] [-sacLT] > Usage: libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] > [-arch_only arch] [-o output] [-install_name name] [- > compatibility_version #] [-current_version #] [-seg1addr 0x#] [- > segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table > <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] > [-noall_load] > --- -dynamic may be an answer for you. Please try to create shared library from static one, f.e.: libtool -dynamic -o libhbcommon.dylib libhbcommon.a if it will work then we skip .a library extracting in hb-mkslib.sh for Darwin and will use them directly. > I like the .sh way of creating dynamic libs, since it's > much faster than doing two passes, it's also good IMO to > have a common set of build flags to avoid any unnecessary > complexities. On some platforms such conversion is impossible. It's necessary to set -fPIC flag to force relocatable code during compilation. Such code is a little bit slower but can be always converted. In such case the optimal for performance is having two sets of libraries (static and shared) created from objects compiled with different flags. I also like current solution but sometiems I'd like two have an option to build Harbour shared library with different switches. > I just hope we can tweak something to make a unibin OSX > release possible. Maybe the best temp solution should be > to drop shared libs on this platform, since it doesn't > truly effect the usefulness of Harbour, overall. Please try to use libtool to create shared library directly from static one. Maybe it will resolve the problem. If you will see message that you need relocatable code then please add to C_USR -fPIC or -fpic and rebuild Harbour. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour