=================================================================== RCS file: /cvs/mandoc/configure.local.example,v retrieving revision 1.11 retrieving revision 1.14 diff -u -p -r1.11 -r1.14 --- mandoc/configure.local.example 2016/05/18 21:37:04 1.11 +++ mandoc/configure.local.example 2016/07/19 17:56:04 1.14 @@ -1,4 +1,4 @@ -# $Id: configure.local.example,v 1.11 2016/05/18 21:37:04 schwarze Exp $ +# $Id: configure.local.example,v 1.14 2016/07/19 17:56:04 schwarze Exp $ # # Copyright (c) 2014, 2015, 2016 Ingo Schwarze # @@ -91,8 +91,6 @@ MANDIR="${PREFIX}/man" HAVE_MANPATH=1 # Force usage of man.conf(5). -# If it does not exist or contains no valid configuration, -# man(1), makewhatis(8), and apropos(1) will not work properly. HAVE_MANPATH=0 # Some distributions may want to avoid naming conflicts @@ -131,11 +129,18 @@ BINM_SOELIM=msoelim # default is "soelim" LD_OHASH="-lutil" -# Some platforms may need additional linker flags that are not autodetected. +# Some platforms may need additional linker flags to link against libmandoc +# that are not autodetected. # For example, Solaris 9 and 10 need -lrt for nanosleep(2). LDADD="-lrt" +# Some systems may want to set additional linker flags for all the +# binaries, not only for those using libmandoc, for example for +# hardening options. + +LDFLAGS="-Wl,-z,relro" + # It is possible to change the utility program used for installation # and the modes files are installed with. The defaults are: @@ -191,7 +196,7 @@ BINM_MAKEWHATIS=mandocdb # default is "makewhatis" PREFIX="/usr/local" HOMEBREWDIR="${PREFIX}/Cellar" -# --- user settings related man.cgi ------------------------------------ +# --- user settings related to man.cgi --------------------------------- # By default, building man.cgi(8) is disabled. To enable it, copy # cgi.h.example to cgi.h, edit it, and use the following line. @@ -229,9 +234,17 @@ CGIBINDIR="${WWWPREFIX}/cgi-bin" CC=cc +# IBM AIX may need: + +CC=xlc + # The default compiler flags are: CFLAGS="-g -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings" + +# IBM AIX xlc does not support -W; in that case, please use: + +CFLAGS="-g" # In rare cases, it may be required to skip individual automatic tests. # Each of the following variables can be set to 0 (test will not be run