diff options
author | Andrew Stormont <andyjstormont@googlemail.com> | 2011-06-13 16:43:42 +0100 |
---|---|---|
committer | Andrew Stormont <andyjstormont@googlemail.com> | 2011-06-13 16:43:42 +0100 |
commit | 129889506ced510e5184f2a465fdf9a76363a9dd (patch) | |
tree | 1b7f82abe3c2ac388e8311a47c4c247bfa9e5c5d /configure.in | |
parent | 5c24b5fb1e655681493fec334df26c3ed2293eb1 (diff) | |
download | hal-129889506ced510e5184f2a465fdf9a76363a9dd.tar.gz |
Fix build with new solaris files
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.in b/configure.in index bc2698cc..ad2ed299 100644 --- a/configure.in +++ b/configure.in @@ -292,7 +292,8 @@ AM_CONDITIONAL(USE_PARTED, [test x$use_parted = xyes]) #### gcc linker flags -if test "x$GCC" = "xyes"; then +if test "x$GCC" = "xyes" -a `uname -s` != SunOS; then + # This causes undefined symbols errors on Solaris LDFLAGS="-Wl,--as-needed $LDFLAGS" fi @@ -747,7 +748,7 @@ esac # OS specific libs case "$host" in *-*-solaris*) - HALD_OS_LIBS="-lsysevent -lnvpair -ldevinfo" + HALD_OS_LIBS="-lsysevent -lnvpair -ldevinfo -lkstat -lcfgadm" AC_SUBST(HALD_OS_LIBS) ;; esac |