* [Buildroot] [PATCH 1/1] package/xxhash: set MOREFLAGS
@ 2023-01-19 18:48 Fabrice Fontaine
2023-02-06 8:47 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2023-01-19 18:48 UTC (permalink / raw)
To: buildroot; +Cc: Fabrice Fontaine
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@gmail.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
--
2.39.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-06 8:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-19 18:48 [Buildroot] [PATCH 1/1] package/xxhash: set MOREFLAGS Fabrice Fontaine
2023-02-06 8:47 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox