make: Add hidden GNU visibility, and enable LTO

This commit is contained in:
Antoine Soulier
2024-01-26 15:43:40 -08:00
committed by Antoine SOULIER
parent e1f41fc8d4
commit 2e655459eb
6 changed files with 43 additions and 30 deletions

View File

@@ -74,6 +74,13 @@
#endif /* __clang__ */
/**
* Change the visibility of interface functions
*/
#define LC3_EXPORT \
__attribute__((visibility ("default")))
/**
* Macros