Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d08583b0 authored by Magnus Landqvist's avatar Magnus Landqvist Committed by Johan Redestig
Browse files

Build software AGL library with correct get_tls() macro for ARMv7 based platforms

This prevents crashes on snapdragon processors.
parent 54ab0ee5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -37,6 +37,10 @@ ifeq ($(TARGET_ARCH),arm)
	LOCAL_CFLAGS += -fstrict-aliasing
endif

ifeq ($(ARCH_ARM_HAVE_TLS_REGISTER),true)
    LOCAL_CFLAGS += -DHAVE_ARM_TLS_REGISTER
endif

ifneq ($(TARGET_SIMULATOR),true)
    # we need to access the private Bionic header <bionic_tls.h>
    LOCAL_C_INCLUDES += bionic/libc/private