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);
147
147
# define __has_attribute (x ) 0
148
148
#endif
149
149
150
- #if !__has_attribute (tls_model ) || defined(__FreeBSD__ )
150
+ #if !__has_attribute (tls_model ) || defined(__FreeBSD__ ) || defined( __MUSL__ )
151
151
# define TSRM_TLS_MODEL_ATTR
152
152
#elif __PIC__
153
153
# 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
255
255
;;
256
256
esac
257
257
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
+
258
269
dnl Include Zend configurations.
259
270
dnl ----------------------------------------------------------------------------
260
271
You can’t perform that action at this time.
0 commit comments