From 7fe02715aac68b958250b43f9d48d641af0a045c Mon Sep 17 00:00:00 2001 From: Onur Gündüz Date: Wed, 10 Jun 2026 15:49:59 +0200 Subject: build: export only the public API from the shared library --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.3.1