File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ TSRM_API const char *tsrm_api_name(void);
147147# define __has_attribute (x ) 0
148148#endif
149149
150- #if !__has_attribute (tls_model ) || defined(__FreeBSD__ )
150+ #if !__has_attribute (tls_model ) || defined(__FreeBSD__ ) || defined( __MUSL__ )
151151# define TSRM_TLS_MODEL_ATTR
152152#elif __PIC__
153153# define TSRM_TLS_MODEL_ATTR __attribute__((tls_model("initial-exec")))
Original file line number Diff line number Diff line change @@ -255,6 +255,17 @@ case $host_alias in
255255 ;;
256256esac
257257
258+ dnl Detect musl libc
259+ AC_MSG_CHECKING ( [ whether we are using musl libc] )
260+ if command -v ldd >/dev/null && ldd --version 2>&1 | grep -q ^musl
261+ then
262+ AC_MSG_RESULT ( yes )
263+ CPPFLAGS="$CPPFLAGS -D__MUSL__"
264+ else
265+ AC_MSG_RESULT ( no )
266+ fi
267+
268+
258269dnl Include Zend configurations.
259270dnl ----------------------------------------------------------------------------
260271
You can’t perform that action at this time.
0 commit comments