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