Skip to content

Commit

Permalink
Merge pull request NixOS#4889 from puckipedia/fix-atomic-sunos
Browse files Browse the repository at this point in the history
configure.ac: fix use of unread LIBS variable
  • Loading branch information
edolstra authored Jun 4, 2021
2 parents bb06640 + 196b77b commit 8e6ee1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ AC_SYS_LARGEFILE
AC_STRUCT_DIRENT_D_TYPE
if test "$sys_name" = sunos; then
# Solaris requires -lsocket -lnsl for network functions
LIBS="-lsocket -lnsl $LIBS"
LDFLAGS="-lsocket -lnsl $LDFLAGS"
fi


Expand Down Expand Up @@ -150,7 +150,7 @@ int main() {
}]])], GCC_ATOMIC_BUILTINS_NEED_LIBATOMIC=no, GCC_ATOMIC_BUILTINS_NEED_LIBATOMIC=yes)
AC_MSG_RESULT($GCC_ATOMIC_BUILTINS_NEED_LIBATOMIC)
if test "x$GCC_ATOMIC_BUILTINS_NEED_LIBATOMIC" = xyes; then
LIBS="-latomic $LIBS"
LDFLAGS="-latomic $LDFLAGS"
fi

PKG_PROG_PKG_CONFIG
Expand Down

0 comments on commit 8e6ee1b

Please sign in to comment.