Commit b6f55eac authored by Luca Boccassi's avatar Luca Boccassi Committed by Luca Boccassi

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.
parent ffd99fba
......@@ -322,10 +322,11 @@ case "${host_os}" in
;;
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
CXXFLAGS="${CXXFLAGS} -features=extensions"
CFLAGS="${CFLAGS} -features=extensions"
CPPFLAGS="${CPPFLAGS} -DUNITY_WEAK_PRAGMA"
fi
# Checks for libraries
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment