configure: add -xc99 to LDFLAGS for Sun CC
authorSean McGovern <gseanmcg@gmail.com>
Wed, 20 Jul 2011 21:25:41 +0000 (17:25 -0400)
committerDiego Biurrun <diego@biurrun.de>
Wed, 20 Jul 2011 22:30:16 +0000 (00:30 +0200)
Using Sun's compiler on Solaris, -xc99 is as much a linker flag as a
compiler flag, so add it to LDFLAGS.

Signed-off-by: Diego Biurrun <diego@biurrun.de>
configure

index 28e008f..3953cfc 100755 (executable)
--- a/configure
+++ b/configure
@@ -2014,6 +2014,7 @@ elif $cc -V 2>&1 | grep -q Sun; then
     cc_ident=$($cc -V 2>&1 | head -n1 | cut -d' ' -f 2-)
     DEPEND_CMD='$(DEPCC) $(DEPFLAGS) $< | sed -e "1s,^.*: ,$@: ," -e "\$$!s,\$$, \\\," -e "1!s,^.*: , ," > $(@:.o=.d)'
     DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -xM1'
+    add_ldflags -xc99
     speed_cflags='-O5'
     size_cflags='-O5 -xspace'
     filter_cflags=suncc_flags