Skip to content

Commit

Permalink
refs qorelanguage/qore#861 solaris build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnich committed May 15, 2016
1 parent c257033 commit 0633163
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions configure.ac
Expand Up @@ -62,9 +62,7 @@ case "${host_os}" in
SHLIB_SUFFIX=so
AC_DEFINE(LINUX, 1, if compiling on Linux)
;;
*solaris*) # set compile flags for Solaris
CPPFLAGS="${CPPFLAGS} -D_POSIX_C_SOURCE=199506L -D_XPG4_2 -D_XPG5 -D__EXTENSIONS__"
# for checking for some network functions on Solaris
*solaris*) # for checking for some network functions on Solaris
LDFLAGS="$LDFLAGS -lnsl"
# assume we are using CC if not using g++, add -norunpath to link flags in this case
if test "$GXX" != "yes"; then
Expand Down Expand Up @@ -251,11 +249,7 @@ else
fi
;;
*solaris*) if test "$GXX" = "yes"; then
if test "$host_cpu" = "sparc"; then
CXXFLAGS="$CXXFLAGS -mcpu=v8 -m32"
else
CXXFLAGS="$CXXFLAGS -m32"
fi
CXXFLAGS="$CXXFLAGS -m32"
else
CXXFLAGS="$CXXFLAGS -xarch=generic"
fi
Expand Down

0 comments on commit 0633163

Please sign in to comment.