mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 07:31:03 +08: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
|
||||
|
||||
# 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user