package/mdadm: do not hardcode -fpie

Set LDLIBS to -ldl to remove -fpie and fix the following build failure
raised since bump to version 4.3 in commit
99e9ff08d0 and
https://git.kernel.org/pub/scm/utils/mdadm/mdadm.git/commit/?id=55a1150c7438afcb7756fccd49713ede20a58e4a:

/home/buildroot/autobuild/instance-3/output-1/host/lib/gcc/or1k-buildroot-linux-gnu/12.3.0/../../../../or1k-buildroot-linux-gnu/bin/ld: mdmon.o: non-pic relocation against symbol

Fixes: 99e9ff08d0
 - http://autobuild.buildroot.org/results/827b714deeaf091b368d59791e4306b85a8f7f26

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2024-04-12 18:40:17 +02:00 committed by Thomas Petazzoni
parent 4eeb69c983
commit 826e0bc336

View File

@ -20,7 +20,8 @@ MDADM_BUILD_OPTS = \
CWFLAGS="" \ CWFLAGS="" \
CXFLAGS="$(MDADM_CXFLAGS)" \ CXFLAGS="$(MDADM_CXFLAGS)" \
CPPFLAGS="$(TARGET_CPPFLAGS) -DBINDIR=\\\"/sbin\\\"" \ CPPFLAGS="$(TARGET_CPPFLAGS) -DBINDIR=\\\"/sbin\\\"" \
CHECK_RUN_DIR=0 CHECK_RUN_DIR=0 \
LDLIBS=-ldl
MDADM_INSTALL_TARGET_OPTS = install-bin MDADM_INSTALL_TARGET_OPTS = install-bin