Skip to content

Commit

Permalink
Merge pull request #690 from joshcooper/aix72_openssl
Browse files Browse the repository at this point in the history
(PA-4871) Add our libdir to the runtime linker search path
  • Loading branch information
cthorn42 authored Jul 6, 2023
2 parents 27c97b3 + 3a757e5 commit b6922b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions configs/components/openssl-3.0.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@
pkg.environment 'CC', '/opt/freeware/bin/gcc'

cflags = "#{settings[:cflags]} -static-libgcc"
# see https://github.com/openssl/openssl/issues/18007
ldflags = "#{settings[:ldflags]} -latomic -lm"
# see https://github.com/openssl/openssl/issues/18007 about -latomic
# see https://www.ibm.com/docs/en/aix/7.2?topic=l-ld-command about -R<path>, which is equivalent to -rpath
ldflags = "#{settings[:ldflags]} -Wl,-R#{settings[:libdir]} -latomic -lm"
target = 'aix-gcc'
# elsif platform.is_solaris?
# pkg.environment 'PATH', '/opt/pl-build-tools/bin:$(PATH):/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin'
Expand Down

0 comments on commit b6922b8

Please sign in to comment.