Skip to contentSkip to conversation

android: make symbols hidden by default

PATCH In review Lucas De Marchi 3 participants 3 messages Sep 20, 2018 – Oct 4, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 android: make symbols hidden by default

---
 Android.common.mk | 1 +
 1 file changed, 1 insertion(+)
Android.common.mk +1 -0
index e3de1069..d0e5d559 100644
@@ -2,6 +2,7 @@
 LOCAL_CFLAGS += \
 	-DMAJOR_IN_SYSMACROS=1 \
 	-DHAVE_VISIBILITY=1 \
+	-fvisibility=hidden \
 	-DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
 
 LOCAL_CFLAGS += \
Signature · 6 lines
2.17.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 1 line · Lucas De Marchi

But it'd be good to have a confirmation from Rob that it actually works:
Cc: Rob Herring <[email protected]>

Quoted 19 lines
---
 Android.common.mk | 1 +
 1 file changed, 1 insertion(+)
Android.common.mk +1 -0
index e3de1069..d0e5d559 100644
@@ -2,6 +2,7 @@
 LOCAL_CFLAGS += \
 	-DMAJOR_IN_SYSMACROS=1 \
 	-DHAVE_VISIBILITY=1 \
+	-fvisibility=hidden \
 	-DHAVE_LIBDRM_ATOMIC_PRIMITIVES=1
 
 LOCAL_CFLAGS += \
Signature · 1 line
2.17.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

Reviewed-by
#2 lore raw
Quoted 9 lines · Eric Engestrom
Quoted 1 line · Lucas De Marchi

But it'd be good to have a confirmation from Rob that it actually works:
Cc: Rob Herring <[email protected]>

Yes it does. Older Androids can use GCC which is new enough. While latest ones exclusively use clang which also has the flag.

Will push that in a moment.
Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel