On Sat, Nov 21, 2009 at 8:09 PM, Viktor Szakáts <[email protected]> wrote:
>>> Why whole dir is stripped and why 'lib' prefix is stripped
>>> from dylib reference? Maybe because of -L option with the
>>> same dir?
>>
>> The problem seems not in the hbmk2 but how the libharbour.dylib is generated.
>>
>> In my local repo I set HB_DLL=no and I use the "old" hb-mkslib logic
>> that's now commented out in hb-func.sh and it works as expected.
>>
>> In the "old way" otool -D /opt/harbour/lib/libharbour.dylib returns
>> libharbour.dylib in the "svn way" it returns harbour.dylib.
>
> Could you post the command that's executed when using hb-mkslib?

from bin/hb-mkdyn.sh
...
if [ "${SLIB_EXT}" = ".dylib" ]; then
    FULLNAME="${BASE}.${VERSION}${SLIB_EXT}"
    libtool -dynamic -install_name "${BASE}${SLIB_EXT}" \
        -compatibility_version ${MAJOR}.${MINOR} -current_version ${VERSION} \
        -flat_namespace -undefined warning -multiply_defined suppress
-single_module ${HB_USER_DFLAGS} \
        -o "${DSTDIR}/${FULLNAME}" "$@" && \
    ln -sf "${FULLNAME}" "${DSTDIR}${BASE}.${MAJOR}${SLIB_EXT}" && \
    ln -sf "${FULLNAME}" "${DSTDIR}${BASE}${SLIB_EXT}"
...

best regards,
Lorenzo
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to