Commit aa23514
committed
perl-modules: link Crypt::SSLeay against our custom-built OpenSSL
$(location @openssl//:gen_dir) returns a path relative to the Bazel
execroot. build_module.pl chdirs into the extracted tarball directory
before invoking Makefile.PL, making the relative path dangle — the
linker silently fell back to system libssl.so.1.1.
Fix: prefix the openssl path with $$PWD in the genrule cmd so it is
absolute and survives the chdir.
Also pass OPENSSL_PREFIX, -I <prefix>/include (CCFLAGS), and correct
-L <prefix>/lib (LDDLFLAGS) so Crypt::SSLeay's Makefile.PL discovers
our OpenSSL headers and libraries rather than the system ones.
CMK-33658
Change-Id: I8e31007d3e37f996a04caff37e44c4cf6840d0b0
(cherry picked from commit 0cf0d40)
(cherry picked from commit e232cf1)1 parent ded4cd9 commit aa23514
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
433 | | - | |
| 433 | + | |
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| |||
0 commit comments