configure.ac: autodetect OSX SDK path#647
Conversation
Fixes:
Undefined symbols for architecture x86_64:
"___darwin_check_fd_set_overflow", referenced from:
_select_add in libevent.a(select.o)
_select_del in libevent.a(select.o)
_select_dispatch in libevent.a(select.o)
_uv__stream_osx_select in libuv.a(libuv_la-stream.o)
|
What is using libevent besides LWS? Is it dynamically linked on OSX? This is looking for the static lib too. |
|
Well this is really just an issue with the sdk path being needed in order for the compiler to properly handle certain symbols, it's not really specific to libevent or LWS. |
|
Ok, will merge once im done with the current refactoring of the cli arg handler. |
|
http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html# https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html# ===========================================================================## SYNOPSIS@@ -10,13 +10,13 @@## Check for baseline language coverage in the compiler for the specified# version of the C++ standard. If necessary, add switches to CXX and# CXXCPP to enable support. VERSION may be '11' (for the C++11 standard)# or '14' (for the C++14 standard).# CXXCPP to enable support. VERSION may be '11', '14', '17', or '20' for# the respective C++ standard version.## The second argument, if specified, indicates whether you insist on an# extended mode (e.g. -std=gnu++11) or a strict conformance mode (e.g.# -std=c++11). If neither is specified, you get whatever works, with# preference for an extended mode.# preference for no added switch, and then for an extended mode.## The third argument, if specified 'mandatory' or if left unspecified,# indicates that baseline support for the specified C++ standard is@@ -33,21 +33,26 @@# Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov sokolov@google.com# Copyright (c) 2015 Paul Norman penorman@mac.com# Copyright (c) 2015 Moritz Klammler moritz@klammler.eu# Copyright (c) 2016, 2018 Krzesimir Nowak qdlacz@gmail.com# Copyright (c) 2019 Enji Cooper yaneurabeya@gmail.com# Copyright (c) 2020 Jason Merrill jason@redhat.com# Copyright (c) 2021 Jörn Heusipp osmanx@problemloesungsmaschine.de## Copying and distribution of this file, with or without modification, are# permitted in any medium without royalty provided the copyright notice# and this notice are preserved. This file is offered as-is, without any# warranty.#serial 4#serial 18dnl This macro is based on the code from the AX_CXX_COMPILE_STDCXX_11 macrodnl (serial version number 13).AC_DEFUN([AX_CXX_COMPILE_STDCXX], [dnl m4_if([$1], [11], [], [$1], [14], [], [$1], [17], [m4_fatal([support for C++17 not yet implemented in AX_CXX_COMPILE_STDCXX])], m4_if([$1], [11], [ax_cxx_compile_alternatives="11 0x"], [$1], [14], [ax_cxx_compile_alternatives="14 1y"], [$1], [17], [ax_cxx_compile_alternatives="17 1z"], [$1], [20], [ax_cxx_compile_alternatives="20"], [m4_fatal([invalid first argument |
Fixes: