Branch libreoffice-5-0-4
[LibreOffice.git] / setup_native / Library_getuid.mk
blob650cfaf1897bf6087064683ff6bc93fa6a8d5ef6
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval $(call gb_Library_Library,getuid))
12 ifeq ($(OS),LINUX)
13 $(eval $(call gb_Library_add_defs,getuid,\
14 -D_GNU_SOURCE \
16 endif
18 $(call gb_LinkTarget_get_target,$(call gb_Library_get_linktarget,getuid)) : gb_CC := $(filter-out -fsanitize=%,$(gb_CC))
20 # the library is used by LD_PRELOAD; make sure that we see the symbols ;-)
21 ifeq ($(COM),GCC)
22 $(eval $(call gb_Library_add_cflags,getuid,\
23 -fvisibility=default \
25 endif
27 $(eval $(call gb_Library_add_cobjects,getuid,\
28 setup_native/scripts/source/getuid \
31 $(eval $(call gb_Library_add_libs,getuid,\
32 -ldl \
35 # vim: set noet sw=4 ts=4: