Skip to content

Commit 44652d4

Browse files
JunhongMaomssonicbld
authored andcommittedNov 13, 2024·
To fix: redis-cli build broken on Debian/Bookworm (librdb use-after-free) (#20759)
Fix #20757 Why I did it To Fix the issue: redis-cli build broken on Debian/Bookworm (librdb use-after-free) #20757 How I did it This issue is a known open issue below: redis/librdb#55 According to Walter Doekes's solution, currently to work around it by adding -floto=auto compiler option. make -j$(SONIC_CONFIG_MAKE_JOBS) WARNS='-Wall -Wextra -pedantic -flto=auto'

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/rdb-cli/Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
88
rm -rf ./librdb
99
git clone https://github.com/redis/librdb.git
1010
pushd ./librdb/
11-
git checkout 2fdfc0c2bc914d643fe3f86e6715aeb843d8966e
11+
git checkout tags/v1.0.0
1212
git submodule update --init --recursive
13-
make -j$(SONIC_CONFIG_MAKE_JOBS)
13+
# Set WARNS=... to work around https://github.com/redis/librdb/issues/55
14+
make -j$(SONIC_CONFIG_MAKE_JOBS) WARNS='-Wall -Wextra -pedantic -flto=auto'
1415
mv bin/rdb-cli $(DEST)/

0 commit comments

Comments
 (0)
Please sign in to comment.