[Hackage] #318: Library cannnot be used when registered in-place on OS X

Hackage cvs-ghc at haskell.org
Thu May 27 17:18:07 EDT 2010


#318: Library cannnot be used when registered in-place on OS X
------------------------------+---------------------------------------------
  Reporter:  guest            |         Type:  defect       
    Status:  reopened         |     Priority:  normal       
 Milestone:  Cabal-1.8        |    Component:  Cabal library
   Version:  1.4.0.1          |     Severity:  normal       
Resolution:                   |     Keywords:               
Difficulty:  easy (<4 hours)  |   Ghcversion:  6.8.3        
  Platform:  Mac OS           |  
------------------------------+---------------------------------------------

Comment(by tibbe):

 The attached patch should fix the problem. I verified that passing `-s`
 works even if there are two `.o` files with the same name on the command
 line:

 {{{
 $ mkdir foo
 $ cd foo
 $ cat > a.c
 int foo(void) {
     return 0;
 }
 $ gcc -c a.c
 $ cd ..
 $ mkdir bar
 $ cd bar
 $ cat > a.c
 int bar(void) {
     return 1;
 }
 $ gcc -c a.c
 $ cd ..
 $ ar -r -s blah.a foo/a.o bar/a.o
 $ ar -t blah.a
 __.SYMDEF SORTED
 a.o
 a.o
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/318#comment:17>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects



More information about the cabal-devel mailing list