aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-06-10 15:49:59 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-06-14 08:27:03 +0200
commit7fe02715aac68b958250b43f9d48d641af0a045c (patch)
tree7bc866f87999991ef0a3ffa0dd36ce91444e5172 /Makefile
parente8259865f41ceb50dd28b267186d11c62a465135 (diff)
downloadffwd-7fe02715aac68b958250b43f9d48d641af0a045c.tar.gz
ffwd-7fe02715aac68b958250b43f9d48d641af0a045c.zip
build: export only the public API from the shared library
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