On Wed, 05 Nov 2008, Lorenzo Fiorini wrote: Hi Lorenzo,
> I use standard gnu makefiles with hb* scripts but under Mac OS X I > can't find the right way to shared executables. > Everything gets built correctly using the same makefiles I use under > Win and Lin but at runtime the executable looks for libmylib.0.dylib > while my lib is libmylib.dylib. > If I change it using install_name_tool I can get it working but it's > not the best way. > Could it be that we need sth different in the hb-mkslib for darwin? > Any idea? In hb-mkslib.sh we have: FULLNAME="${BASE}.${VERSION}${SLIB_EXT}" ${CCPREFIX}libtool -dynamic -install_name "${BASE}.${MAJOR}${SLIB_EXT}" \ -compatibility_version ${MAJOR}.${MINOR} -current_version ${VERSION} \ -flat_namespace -undefined warning -multiply_defined suppress -single_module \ -o "${DSTDIR}/${FULLNAME}" "$@" && \ ln -sf "${FULLNAME}" "${DSTDIR}${BASE}.${MAJOR}${SLIB_EXT}" && \ ln -sf "${FULLNAME}" "${DSTDIR}${BASE}${SLIB_EXT}" change -install_name parameter to: ${CCPREFIX}libtool -dynamic -install_name "${BASE}${SLIB_EXT}" \ Check if everything works correctly. If yes then please commit it. best regards, Przemek _______________________________________________ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour