On 10/24/2015 11:41 AM, Richard Levitte wrote:
This is quite odd.  Just for comparison, I tried the same on my laptop
(running Debian):

     : ; pkg-config --static --libs-only-l openssl
     -lssl -ldl -lcrypto -ldl

Thanks for checking Richard. I installed pkg-config .29 and that solved the problem so I guess it was a bug in pkg-config. Now I get the same pattern, ie -lssl <libs> -lcrypto <libs>

$ pkg-config --static --libs-only-l openssl
-lssl -lws2_32 -lgdi32 -lcrypt32 -lcrypto -lws2_32 -lgdi32 -lcrypt32


Side note for anyone who needs to install the latest pkg-config in mingw32, these are the steps I followed:

Get the latest version at http://pkgconfig.freedesktop.org/releases/?C=M;O=D
Since mingw32 doesn't have MemoryBarrier() I used mfence:

CFLAGS="-g -O2 -DMemoryBarrier\\(\\)=asm\\(\\\"mfence\\;\\\"\\)" ./configure --with-internal-glib >config.out 2>&1
make V=1 >make.out 2>&1
make install

So pkg.m4 can be found add /usr/local/share/aclocal to the aclocal dirlist if it's not there already:

grep -E "^/usr/local/share/aclocal$" /mingw/share/aclocal/dirlist 2>/dev/null if [[ $? -ne 0 ]]; then echo /usr/local/share/aclocal >> /mingw/share/aclocal/dirlist; fi


_______________________________________________
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev

Reply via email to