mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-06 00:31:13 +01:00
Problem: unity build broken with Sun Studio
Solution: define UNITY_WEAK_PRAGMA when building with the Sun compiler as it does not support the weak attribute.
This commit is contained in:
parent
ffd99fbaf5
commit
b6f55eac14
@ -322,10 +322,11 @@ case "${host_os}" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Sun Studio does not like anonymous structures in unions
|
# Sun Studio does not like anonymous structures in unions and does not have weak attribute
|
||||||
if test "x$libzmq_cv_[]_AC_LANG_ABBREV[]_sun_studio_compiler" = "xyes"; then
|
if test "x$libzmq_cv_[]_AC_LANG_ABBREV[]_sun_studio_compiler" = "xyes"; then
|
||||||
CXXFLAGS="${CXXFLAGS} -features=extensions"
|
CXXFLAGS="${CXXFLAGS} -features=extensions"
|
||||||
CFLAGS="${CFLAGS} -features=extensions"
|
CFLAGS="${CFLAGS} -features=extensions"
|
||||||
|
CPPFLAGS="${CPPFLAGS} -DUNITY_WEAK_PRAGMA"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Checks for libraries
|
# Checks for libraries
|
||||||
|
Loading…
Reference in New Issue
Block a user