summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2023-02-13 12:34:42 -0800
committerGuy Harris <gharris@sonic.net>2023-02-13 12:34:42 -0800
commit93a3b993beeedd5e39d26fb4a99a5fad148f0d8e (patch)
tree47a884708a4ca57c9d0971dc3bc63e87ee1e2333 /configure.ac
parent9c3f8381e1db212523af0b5398bc6ad1993fc304 (diff)
downloadtcpdump-93a3b993beeedd5e39d26fb4a99a5fad148f0d8e.tar.gz
CMake: try to fix the Haiku build.
If we set CMAKE_C_FLAGS_INIT to "-fPIC" before setting the project, that initializes CMAKE_C_FLAGS to "-fPIC" *before* prepending the contents of the CFLAGS environment variable, and *before* doing any tests that depend on linking, in the project() command, so it 1) adds -fPIC before doing those tests, so they don't fail due to the object files being unfit to link into an executable, and 2) adds the contents of CFLAGS to CMAKE_C_FLAGS, so the user can set CFLAGS and have it affect the build. This requires CMake 3.7 or later, so we set 3.7 as the minimum required on Haiku. This should fix some of #996, although more needs to be done.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions