[Buildroot] [git commit branch/2022.02.x] package/xxhash: use MOREFLAGS instead of overriding CFLAGS
Peter Korsgaard
peter at korsgaard.com
Tue Feb 21 20:47:16 UTC 2023
commit: https://git.buildroot.net/buildroot/commit/?id=02ea469db39bb3774093cbcf5c327873febeb0f6
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2022.02.x
Set MOREFLAGS instead of overriding CFLAGS to avoid the following build
failure raised since commit 94b66fb49cd57d0863245fbe0a3dc0833e76aad0:
/home/autobuild/autobuild/instance-6/output-1/host/lib/gcc/x86_64-buildroot-linux-uclibc/11.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: /tmp/ccabb8cF.o: relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
Fixes:
- http://autobuild.buildroot.org/results/953133575d8c13266f1450fa545e70e4a518508d
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit bfef88762d19b2fd8f99b55cee5c9ebaf986e1c7)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
package/xxhash/xxhash.mk | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/package/xxhash/xxhash.mk b/package/xxhash/xxhash.mk
index 40e3c2696c..75d375a2fa 100644
--- a/package/xxhash/xxhash.mk
+++ b/package/xxhash/xxhash.mk
@@ -28,8 +28,7 @@ endif
define XXHASH_BUILD_CMDS
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
- CFLAGS="$(TARGET_CFLAGS) -DXXH_NO_INLINE_HINTS" \
- $(XXHASH_TARGETS)
+ MOREFLAGS=-DXXH_NO_INLINE_HINTS $(XXHASH_TARGETS)
endef
define XXHASH_INSTALL_STAGING_CMDS
More information about the buildroot
mailing list