]> sourceware.org Git - lvm2.git/commit
configure.ac: update ldflags args
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 23 Apr 2024 21:30:35 +0000 (23:30 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 23 Apr 2024 22:31:26 +0000 (00:31 +0200)
commit078445658c506f2df54c7362ac9f810dfe0eff3c
treeac5141db8855d0ee5411a6ff6be7ce5d5b41f599
parentf022da9e5ff807a8ea538cbdb01faf27421731ff
configure.ac: update ldflags args

Attach -Wl,-z,relro,-z,now,-z,pack-relative-relocs,--as-needed
to LDFLAGS, but only if LDFLAGS already doesn't contain 'relro'
(so it's not given repeatedly).

Also start to use -z,now linkage also when building libraries
with default compilation - this avoid calling symbol resolver
while library function are using function needing resolving.

Note: Fedora or RHEL rpm building is using:
CFLAGS=$(rpm --eval %{build_cflags})
LDFLAGS=$(rpm --eval %{build_ldflags})

Also split -DUSE_SD_NOTIFY into DEFS from CFLAGS.
configure.ac
daemons/lvmlockd/Makefile.in
libdm/make.tmpl.in
make.tmpl.in
This page took 0.032258 seconds and 5 git commands to generate.