package/xxhash: set MOREFLAGS
PATCH 1/1 package/xxhash: set MOREFLAGS
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
--- package/xxhash/xxhash.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
package/xxhash/xxhash.mk +1 -2
@@ -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
Signature · 6 lines
2.39.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedQuoted 5 lines · On Thu, 19 Jan 2023 19:48:46 +0100 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: relocationR_X86_64_32Sagainst `.rodata' can not be used when making a shared object; recompile with -fPIC
Quoted 7 lines
Fixes:
- http://autobuild.buildroot.org/results/953133575d8c13266f1450fa545e70e4a518508dSigned-off-by Fabrice Fontaine <[email protected]>--- package/xxhash/xxhash.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Applied to master, thanks.
Thomas
Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot