> #!/usr/bin/bash
> if [ `uname` = "SunOS" -a "`ld  --version  2>&1  | grep GNU`" = "" ]; then
>    echo "Solaris system. The linker is NOT the GNU linker"
>    echo "The correct compiler flags are '-Wl,-h,'"
> elif  [ `uname` = "darwin" ]; then
>    echo "OS X"
>    echo "Correct compiler flags are '-Wl,-h,'"
> else
>    echo "Not OSX, or Solaris with the Sun linker"
>    echo "The correct flags are '-Wl,-soname,'"
> fi

Actually, what i put above is printing the wrong flags for OS X, but you 
should see what I mean. I want something like this, which returns the 
right flags in python.


#!/usr/bin/bash
if [ `uname` = "SunOS" -a "`ld  --version  2>&1  | grep GNU`" = "" ]; then
   echo "Solaris system. The linker is NOT the GNU linker"
   echo "The correct compiler flags are '-Wl,-h,'"
elif  [ `uname` = "darwin" ]; then
   echo "OS X"
   echo "Correct compiler flags are -Wl,-dylib_install_name -Wl,"
else
   echo "Not OSX, or Solaris with the Sun linker"
   echo "The correct flags are '-Wl,-soname,'"
fi


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to