From dc8c8c3868d3dac348c8641d0a68efa0d412b76e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Sat, 5 Dec 2020 18:22:03 -0300 Subject: [PATCH] lib/Makefile: guard -fvisibility=hidden flag. --- lib/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Makefile b/lib/Makefile index 5c10bf6f..9636d668 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -16,7 +16,10 @@ LIBPROP_OBJS += portableproplib/prop_stack.o portableproplib/prop_string.o LIBPROP_OBJS += portableproplib/prop_array_util.o portableproplib/prop_number.o LIBPROP_OBJS += portableproplib/prop_dictionary_util.o portableproplib/prop_zlib.o LIBPROP_OBJS += portableproplib/prop_data.o -LIBPROP_CFLAGS = -Wno-unused-parameter -fvisibility=hidden +LIBPROP_CFLAGS = -Wno-unused-parameter +ifdef HAVE_VISIBILITY +LIBPROP_CFLAGS += -fvisibility=hidden +endif # libfetch LIBFETCH_OBJS = fetch/common.o fetch/fetch.o fetch/file.o