Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error building on some 32 bit targets.
Ignore-this: 212d1935582b619313032033a20834d Apply patch due to Heinrich Apfelmus (apfelmus@quantentunnel.de). His description attached below: "I just tripped over a bug in the Setup.hs belonging to wxc that prevented me from compiling wxHaskell with 32bit architecture. The problem is the following: in the function linkSharedLib , the function runProgram is commented out and the function system is used instead. This is not correct because gcc may (and in my case: does) carry additional command line options! (Besides, the verbose output is lost.) Apparently, this was done because the runProgram didn't work for some reason. The reason is that some command line options are actually two arguments. In particular, setting the output file via "-o " ++ out_dir </> sharedLibName ver basename, is not correct, the right way to go about it are two arguments "-o", out_dir </> sharedLibName ver basename, Same for the "-install_name" option. Four lines need to be changed in the linkCxxOpts file, then runProgram will work." darcs-hash:20120414142124-75908-2cab48a05599cd3556734f64dbd712a24fe6c619.gz
- Loading branch information
1 parent
7e6e043
commit a57ff51
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters