Whamcloud - gitweb
LU-18522 utils: fix -export-dynamic flag 34/57334/6
authorSohei Koyama <skoyama@ddn.com>
Sun, 8 Dec 2024 15:09:35 +0000 (00:09 +0900)
committerOleg Drokin <green@whamcloud.com>
Mon, 16 Dec 2024 08:20:39 +0000 (08:20 +0000)
commitabd75cd6be4f2d54d58bb89ed0296a6e37db1d2c
treee8c01dd4b1d4679a825c0eda92f0e2b835c59409
parentfdab3cb777ccfe38fbaff60f7eb10e3939cc9683
LU-18522 utils: fix -export-dynamic flag

When compiled with clang it fails with
`unknown argument: '-export-dynamic'`.
'-export-dynamic' is supported by gcc but not by clang.
Change to '-Wl,--export-dynamic' instead, which both supports.
-Wl, specifies the flags to be passed to the linker.

Signed-off-by: Sohei Koyama <skoyama@ddn.com>
Change-Id: I35830c0fec5387d532252478a402735ba2ad2dbf
Test-Parameters: trivial
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57334
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
lustre/utils/Makefile.am