2009/04/09 FFT <fft1...@gmail.com>: > I noticed that even simple WX demos like "Layout" are linked > dynamically against 59 libraries on Linux. This would make > distributing the binaries a nightmare. Is there a simple way > to make a (mostly) statically linked binary?
I have had mixed success with `-static -optl-static` (as recommended in "Practical Web Programming in Haskell" page, for example). On Macs, it's hard to get it to work (have never bothered); on Linux, I remember I had to remove it on once occasion to get things to work across Ubuntu and Gentoo (had to do with differences in libc, I believe, but I did not retain notes). Maybe passing in the specific libs to the linker with `-optl` is the best bet? -- Jason Dusek |...Practical Web Programming in Haskell...| http://www.haskell.org/haskellwiki/Practical_web_programming_in_Haskell#Compiling_and_running_web_applications ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ wxhaskell-users mailing list wxhaskell-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxhaskell-users