]> git.ipfire.org Git - thirdparty/bind9.git/commit
Avoid redefining _FORTIFY_SOURCE
authorTony Finch <fanf@isc.org>
Wed, 15 Feb 2023 19:00:37 +0000 (19:00 +0000)
committerTony Finch <fanf@isc.org>
Thu, 16 Feb 2023 13:43:40 +0000 (13:43 +0000)
commitb0377f798f6794b6c93be150da6bc3fc140f1ce4
tree66b14751e5660138617de761edaed012253957b2
parent3203d6c549c44f7013e7b5387274e7361156af82
Avoid redefining _FORTIFY_SOURCE

Some compilers have a built-in definition of the _FORTIFY_SOURCE macro
that differs from BIND's preferred setting. This causes errors like
the one quoted below. The solution is to undefine the macro before
defining it. A similar fix was recently committed to glibc.

    <command line>: error: '_FORTIFY_SOURCE' macro redefined
    #define _FORTIFY_SOURCE 2
            ^
    <built-in>: note: previous definition is here
    #define _FORTIFY_SOURCE 0
    ^

https://sourceware.org/git/glibc.git/commitdiff/35bcb08eaa953c9b
configure.ac