author | Alan Coopersmith <Alan.Coopersmith@Oracle.COM> |
Wed, 11 Jan 2017 22:42:51 -0800 | |
changeset 7567 | 1ac26224c2cb |
parent 5716 | ffdc005c7dcc |
permissions | -rw-r--r-- |
Upstream contribution is planned but has not yet occurred. --- postfix-3.1.0/makedefs.~1~ 2016-02-21 14:39:45.000000000 -0800 +++ postfix-3.1.0/makedefs 2016-04-01 17:53:50.389724370 -0700 @@ -358,15 +358,22 @@ case $RELEASE in 5.[0-8]|5.[0-8].*) CCARGS="$CCARGS -DNO_CLOSEFROM -DNO_DEV_URANDOM -DNO_FUTIMESAT -DSTREAM_CONNECTIONS";; esac - # Somewhere NISPLUS went away. + # NISPLUS went away in Solaris 11. case $RELEASE in - 5.[0-9][0-9]*) CCARGS="$CCARGS -DNO_NISPLUS";; + 5.1[1-9]*) CCARGS="$CCARGS -DNO_NISPLUS";; + esac + # libsocket & libnsl were merged into libc in Solaris 12. + case $RELEASE in + 5.1[2-9]*) SYSLIBS="-lresolv -ldl" + esac + # Work around broken str*casecmp(), fixed in Solaris 9. Do + # it all here instead of having half the solution in the + # sys_defs.h file. + case $RELEASE in + 5.[0-8]|5.[0-8].*) CCARGS="$CCARGS -Dstrcasecmp=fix_strcasecmp -Dstrncasecmp=fix_strncasecmp" + STRCASE="strcasecmp.o" + ;; esac - # Work around broken str*casecmp(). Do it all here instead - # of having half the solution in the sys_defs.h file. - CCARGS="$CCARGS -Dstrcasecmp=fix_strcasecmp \ - -Dstrncasecmp=fix_strncasecmp" - STRCASE="strcasecmp.o" # Avoid common types of braindamage case "$LD_LIBRARY_PATH" in ?*) error "Don't set LD_LIBRARY_PATH";;