Does openssl-linked work?

  • Hi all,

    I need my apps to use a very specific version of openssl.

    I was told that by default, Qt apps would load the dynamic openssl libs on my system (Mac OSX 10.8.4, libs are in /usr/lib/) and that if I wanted them to use another version I would have to either make the apps look for the dylibs in the local path (how?) or link to openssl libs statically.

    I think the latter can be achieved by building the Qt project using ./configure -openssl-linked, then make,, and then building applications using the Qt libs created ( ).

    I did that, and then built my project but the apps still seem to look for openssl dynamically. Running "otool -L <exec>" still says:
    /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, current version 47.0.0)
    /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 47.0.0)

    These are the commands I ran:

    export OPENSSL_LIBS="-L /Users/MyUser/Development/MyProject/dependencies/openssl -lssl -lcrypto"

    ./configure -prefix /Users/MyUser/qt-static -openssl-linked -opensource -confirm-license -nomake examples -nomake tests

    make -j 4

    make install

    Am I doing something wrong?

Log in to reply