Commit 1f6c32e0 authored by Antoine Kaufmann's avatar Antoine Kaufmann Committed by Antoine Kaufmann
Browse files

images/memcached: fix build with gcc10+ (pass -fcommon)

With gcc 10, the default switched to -fno-common. This breaks memcached. We
need to explicilty pass -fcommon in the CFLAGS.
parent bb5ff368
...@@ -11,9 +11,9 @@ tar xf libmemcached-1.0.18.tar.gz ...@@ -11,9 +11,9 @@ tar xf libmemcached-1.0.18.tar.gz
cd libmemcached-1.0.18 cd libmemcached-1.0.18
./configure --enable-memaslap --disable-dtrace --prefix=/usr --enable-static \ ./configure --enable-memaslap --disable-dtrace --prefix=/usr --enable-static \
--disable-shared \ --disable-shared \
CXXFLAGS='-fpermissive -pthread' \ CXXFLAGS='-fpermissive -fcommon -pthread' \
CFLAGS='-fpermissive -pthread' \ CFLAGS='-fpermissive -fcommon -pthread' \
LDFLAGS='-pthread' || (cat config.log ; exit 1) LDFLAGS='-fcommon -pthread' || (cat config.log ; exit 1)
make -j`nproc` make -j`nproc`
make -j`nproc` install make -j`nproc` install
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment