]> git.saurik.com Git - apt.git/blame_incremental - buildlib/environment.mak.in
Pass -fvisibility-inlines-hidden to g++
[apt.git] / buildlib / environment.mak.in
... / ...
CommitLineData
1# This file contains everything that autoconf guessed for your system.
2# if you want you can edit it, just don't re-run configure.
3
4PACKAGE = @PACKAGE@
5PACKAGE_VERSION = @PACKAGE_VERSION@
6PACKAGE_MAIL = @PACKAGE_MAIL@
7
8# C++ compiler options
9CC = @CC@
10CPPFLAGS+= @CPPFLAGS@ @DEFS@ -D_REENTRANT -D_FORTIFY_SOURCE=2
11CXX = @CXX@
12CXXSTD = -std=c++11
13CXXFLAGS+= @CXXFLAGS@ -Wall -Wextra
14CXXFLAGS+= -Wcast-align -Wlogical-op -Wredundant-decls -Wmissing-declarations -Wunsafe-loop-optimizations
15CXXFLAGS+= -Wctor-dtor-privacy -Wdisabled-optimization -Winit-self -Wmissing-include-dirs -Wnoexcept -Wsign-promo -Wundef
16# suggests methods which already have such an attribute
17#CXXFLAGS+= -Wsuggest-attribute=pure -Wsuggest-attribute=const -Wsuggest-attribute=noreturn
18# sanitize options to be enabled for testing
19#CXXFLAGS+= -fsanitize=address -fsanitize=undefined -fno-sanitize=vptr
20# a bit too pedantic to be run by default
21#CXXFLAGS+= -Wpedantic -Wno-long-long -Wno-vla -Wno-variadic-macros
22# hide inlines
23CXXFLAGS+= -fvisibility-inlines-hidden
24NUM_PROCS = @NUM_PROCS@
25
26# Linker stuff
27PICFLAGS+= -fPIC -DPIC
28LFLAGS+= @LDFLAGS@
29LEFLAGS+=
30SOCKETLIBS:= @SOCKETLIBS@
31AR:=@AR@
32RANLIB:=@RANLIB@
33
34# Dep generation - this only works for gnu stuff
35GCC3DEP = @GCC3DEP@
36INLINEDEPFLAG = -MD
37
38DOXYGEN = @DOXYGEN@
39W3M = @W3M@
40
41# xsltproc for the man pages and documentation
42XSLTPROC := @XSLTPROC@
43
44# DocBook XML
45DOCBOOK = $(XSLTPROC) --nonet --novalid --xinclude
46DOCBOOK2TEXT = $(W3M) -o display_charset=UTF-8 -no-graph -T text/html \
47 -cols 78 -dump
48
49# po4a for the man pages
50PO4A := @PO4A@
51
52# Gettext settings
53GMSGFMT = @GMSGFMT@
54XGETTEXT = @XGETTEXT@
55MSGCOMM:=$(dir $(XGETTEXT))/msgcomm
56MSGMERGE:=$(dir $(XGETTEXT))/msgmerge
57BASH = @BASH@
58
59# Various library checks
60PTHREADLIB = @PTHREADLIB@
61PYTHONLIB = @PYTHONLIB@
62PYTHONVER = @PYTHONVER@
63PYTHONPREFIX = @PYTHONPREFIX@
64PYTHONEXECPREFIX = @PYTHONEXECPREFIX@
65PYTHONINCLUDE = @PYTHONINCLUDE@
66BDBLIB = @BDBLIB@
67INTLLIBS = @INTLLIBS@
68
69# Shim Headerfile control
70HAVE_STATVFS = @HAVE_STATVFS@
71HAVE_ZLIB = @HAVE_ZLIB@
72HAVE_BZ2 = @HAVE_BZ2@
73HAVE_LZMA = @HAVE_LZMA@
74HAVE_LZ4 = @HAVE_LZ4@
75NEED_SOCKLEN_T_DEFINE = @NEED_SOCKLEN_T_DEFINE@
76
77# Shared library things
78HOST_OS = @host_os@
79ifneq ($(words $(filter gnu% linux-gnu% kfreebsd-gnu% %-gnu,$(HOST_OS))),0)
80 SONAME_MAGIC=-Wl,-soname -Wl,
81 LFLAGS_SO=
82else
83 # Do not know how to create shared libraries here.
84 ONLYSTATICLIBS = yes
85endif