Skip to content
Snippets Groups Projects
Commit 274cfa12 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

docker: fixed broken musl libc + stack protector

parent 41858203
Branches
Tags
No related merge requests found
......@@ -14,7 +14,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#if !defined(__APPLE__) && defined(_GNU_SOURCE)
#if defined(__GLIBC__) && defined(_GNU_SOURCE)
#include <malloc.h>
#endif
#include <uv.h>
......@@ -140,7 +140,7 @@ static void qr_task_free(uv_handle_t *handle)
array_push(worker->pools, mp_context);
} else {
mp_delete(mp_context);
#if !defined(__APPLE__) && defined(_GNU_SOURCE)
#if defined(__GLIBC__) && defined(_GNU_SOURCE)
/* Decommit memory every once in a while */
static int mp_delete_count = 0;
if (++mp_delete_count == 1000) {
......
......@@ -6,7 +6,7 @@ ENV BUILD_PKGS build-base automake autoconf libtool pkgconfig git luajit-dev lib
ENV RUN_PKGS luajit libuv gnutls jansson bash
ENV BUILD_IGNORE gmp nettle jansson gnutls lua libuv cmocka
ENV PKG_CONFIG_PATH /usr/local/lib/pkgconfig
ENV CFLAGS -O2 -g -DNDEBUG
ENV CFLAGS -O2 -ftree-vectorize -fstack-protector -g -DNDEBUG
ENV LDFLAGS -Wl,--as-needed
# Expose port
......
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