Skip to content
This repository was archived by the owner on Aug 1, 2022. It is now read-only.

Commit 150f70a

Browse files
committed
hide symbols by default
1 parent 2ba280d commit 150f70a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ libpthread_workqueue_la_SOURCES = src/api.c src/witem_cache.c src/posix/manager.
1515

1616
libpthread_workqueue_la_LIBADD = -lpthread -lrt
1717

18-
libpthread_workqueue_la_CFLAGS = -I./include -I./src -Wall -Wextra -Werror -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ -D_GNU_SOURCE -std=c99
18+
libpthread_workqueue_la_CFLAGS = -I./include -I./src -Wall -Wextra -Werror -D_XOPEN_SOURCE=600 -D__EXTENSIONS__ -D_GNU_SOURCE -std=c99 -fvisibility=hidden
1919

2020
check_PROGRAMS = test_api test_latency test_witem_cache
2121
TESTS = test_api test_latency test_witem_cache

testing/api/test.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,8 @@ int main() {
277277
pthread_workqueue_init_np();
278278

279279
#ifdef __linux__
280-
printf("runqueue length=%d\n", linux_get_runqueue_length());
280+
//FIXME: This is now a hidden symbol
281+
//printf("runqueue length=%d\n", linux_get_runqueue_length());
281282
#endif
282283

283284
sem_init(&test_complete, 0, 0);

0 commit comments

Comments
 (0)