aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndrew Rossignol <aarossig@google.com>2017-05-10 15:49:59 -0700
committerAndrew Rossignol <aarossig@google.com>2017-05-16 13:51:24 -0700
commit9695b7bc89781c40aeb545ac0e879ff063590bf0 (patch)
tree70f6921db80866921512447bbb145019a6353883 /Makefile
parent99a6c39a9c8c6d06e2a77c11baef03b9fea0630a (diff)
downloadchre-9695b7bc89781c40aeb545ac0e879ff063590bf0.tar.gz
Compile CHRE with hidden visibility
- Export the API with a new DLL_EXPORT macro - Prevents external code from calling into CHRE Test: load_chre.sh, see activity.so load + run Change-Id: Ic57fc7e15e115f394cb14e0a4f5729c25c21a1cf
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a47d9aee..c68af1fc 100644
--- a/Makefile
+++ b/Makefile
@@ -52,6 +52,11 @@ COMMON_CFLAGS += -DCHRE_ASSERTIONS_ENABLED
# Place nanoapps in a namespace.
COMMON_CFLAGS += -DCHRE_NANOAPP_INTERNAL
+# Force all CHRE symbols to be hidden by default.
+COMMON_CFLAGS += -fvisibility=hidden
+
+# Hexagon Flags ################################################################
+
# Define CUST_H to allow including the customer header file.
HEXAGON_CFLAGS += -DCUST_H