[openssl-dev] [openssl.org #4056] 1.0.2d and Configure issue under X32 (ARFLAGS is architecture name?)

Andy Polyakov via RT rt at openssl.org
Thu Sep 24 13:09:34 UTC 2015


> It appears ARFLAGS is set to the architecture when using RPATH options
> in Configure's $cflags and $ldflags. RPATHS are important (IMHO)
> because OpenSSL can get into a situation where /usr/local/bin/openssl
> uses /usr/local/lib/libssl.so, but libssl.so uses the system's
> /usr/lib/libcrypto.so.
> 
> I added a Configure target that provides RPATH options to $cflags
> (field 2) and $ldflags (field 6):
> 
>     # ./Configure LIST | grep x32
>     linux-x32
>     linux-x32-rpath
>     linux32-s390x
> 
> Here's what it looks like (copy and paste from under emacs; ignore the
> back slashes):
> 
>     "linux-x32-rpath",    "gcc:-mx32 -DL_ENDIAN -O3 -Wall
> -Wl,-rpath=/usr/local/ssl\
>     /lib::-D_REENTRANT::-Wl,-rpath=/usr/local/ssl/lib
> -ldl:SIXTY_FOUR_BIT RC4_CHUNK\
>     _LL DES_INT DES_UNROLL:${x86_64_asm}:elf:dlfcn:linux-shared:-fPIC
> -mx32:.so.\$(\
>     SHLIB_MAJOR).\$(SHLIB_MINOR):::x32",
> 
> And below is what it results in, which fails under `make` because `ARFLAGS=m32`.

This means only one thing, that there are not enough : in your config
line. Or in other words your line -> your problem :-) :-) :-) 'make
TABLE' and examine where it does wrong.

And once again, what prevents you from passing custom
-Wl,-rpath=/some/place as additional command line argument to
Configure/config? Thing is that dedicated -rpath line actually works
against own purpose. I mean it reflects somebody's overly particular
need, and there is no guarantee that it coincides with everybody's need.
Isn't it better to have freedom to *choose* depending on situation as
opposite to *cementing* it in config line?




More information about the openssl-dev mailing list