Interesting - but please note that much of the specifics are from when using gcc (on AIX), because the gcc run-time environment is not "native" as it is on (GNU-)Linux systems.
I downloaded the same package and then ran the following to create Makefile
./Configure aix-cc --prefix=/opt/aixtools --openssldir=/var/ssl LDFLAGS=-R/opt/aixtools/lib
make install DESTDIR=/var/aixtools/aixtools/openssl/1.1.1.0 # For packaging
But from the build I run dump -H and get:
Code:
root@x066:[/data/prj/aixtools/openssl/openssl-1.1.1b]dump -H ./apps/openssl
./apps/openssl:
***Loader Section***
Loader Header Information
VERSION# #SYMtableENT #RELOCent LENidSTR
0x00000001 0x0000065f 0x00001cb4 0x00000090
#IMPfilID OFFidSTR LENstrTBL OFFstrTBL
0x00000006 0x0001f178 0x000076c7 0x0001f208
***Import File Strings***
INDEX PATH BASE MEMBER
0 /opt/aixtools/lib:/usr/lib:/lib
1 libssl.a libssl.so.1.1
2 libcrypto.a libcrypto.so.1.1
3 libpthreads.a shr_xpg5.o
4 libc.a shr.o
5 librtl.a shr.o
ldd - before install fails, as expected...
Code:
root@x066:[/data/prj/aixtools/openssl/openssl-1.1.1b]ldd ./apps/openssl
./apps/openssl needs:
/opt/aixtools/lib/libssl.a(libssl.so.1.1)
ar: 0707-109 Member name libssl.so.1.1 does not exist.
dump: /tmp/tmpdir7012416/extract/libssl.so.1.1: 0654-106 Cannot open the specified file.
/opt/aixtools/lib/libcrypto.a(libcrypto.so.1.1)
ar: 0707-109 Member name libcrypto.so.1.1 does not exist.
dump: /tmp/tmpdir7012416/extract/libcrypto.so.1.1: 0654-106 Cannot open the specified file.
/usr/lib/libpthreads.a(shr_xpg5.o)
/usr/lib/libc.a(shr.o)
/usr/lib/librtl.a(shr.o)
/usr/lib/libpthreads.a(shr_comm.o)
/unix
/usr/lib/libcrypt.a(shr.o)
After install:
Code:
root@x066:[/data/prj/aixtools/openssl/openssl-1.1.1b]ldd ./apps/openssl
./apps/openssl needs:
/opt/aixtools/lib/libssl.a(libssl.so.1.1)
/opt/aixtools/lib/libcrypto.a(libcrypto.so.1.1)
/usr/lib/libpthreads.a(shr_xpg5.o)
/usr/lib/libc.a(shr.o)
/usr/lib/librtl.a(shr.o)
/usr/lib/libpthreads.a(shr_comm.o)
/unix
/usr/lib/libcrypt.a(shr.o)
and
Code:
root@x066:[/data/prj/aixtools/openssl/openssl-1.1.1b]ldd /opt/aixtools/bin/openssl
/opt/aixtools/bin/openssl needs:
/opt/aixtools/lib/libssl.a(libssl.so.1.1)
/opt/aixtools/lib/libcrypto.a(libcrypto.so.1.1)
/usr/lib/libpthreads.a(shr_xpg5.o)
/usr/lib/libc.a(shr.o)
/usr/lib/librtl.a(shr.o)
/usr/lib/libpthreads.a(shr_comm.o)
/unix
/usr/lib/libcrypt.a(shr.o)
So, my experience with packaging is that it is much much simpler when working with xlc.
Hope this is interesting, aka helps.
p.s. If you are interested my my scripts for packaging using installp, rather than rpm please look at
http://www.aixtools.net/index.php/buildaix
The scrtipts are "Far from perfect" - feel free to tell me how they can be improved and I'll get my git project updated - and we can collaborate!