aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 33501f9..76de83c 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,9 @@ CC = gcc
# not assume finite math or approximate libm calls: full -ffast-math produced
# NaN embeddings on GCC/OpenBLAS Linux builds (-ffinite-math-only and
# -fapprox-func are the unsafe parts and stay off).
-CFLAGS_BASE = -Wall -Wextra -O3 -march=native -fPIC \
+# -fvisibility=hidden pairs with PPLX_API in the public headers: a new
+# public function without the annotation will be missing from the shared lib.
+CFLAGS_BASE = -Wall -Wextra -O3 -march=native -fPIC -fvisibility=hidden \
-fno-math-errno -ffp-contract=fast -fno-trapping-math \
-fno-signed-zeros -fassociative-math -freciprocal-math
LDFLAGS = -lm -lpthread