diff --git a/package/libmemcached/libmemcached.mk b/package/libmemcached/libmemcached.mk index f86cdd3bbf8a..63df8f5c20a0 100644 --- a/package/libmemcached/libmemcached.mk +++ b/package/libmemcached/libmemcached.mk @@ -16,7 +16,9 @@ LIBMEMCACHED_CPE_ID_VENDOR = awesome # Force Release otherwise libraries will be suffixed by -dbg which will raise # unexpected build failures with packages that use libmemcached (e.g. c-icap) -LIBMEMCACHED_CONF_OPTS += -DCMAKE_BUILD_TYPE=Release +LIBMEMCACHED_CONF_OPTS += \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_FLAGS="$(TARGET_CFLAGS) -std=c99" ifeq ($(BR2_PACKAGE_LIBEVENT),y) LIBMEMCACHED_DEPENDENCIES += libevent