Ticket #34 (new enhancement)

Opened 6 years ago

Last modified 4 years ago

specify a way to add .o files to a library

Reported by: igloo Owned by:
Priority: normal Milestone: Cabal-2.0
Component: Cabal library Version: HEAD
Severity: normal Keywords:
Cc: Difficulty: normal
GHC Version: 6.2.1 Platform:

Description

.o files may be generated by means outside of cabal, and there should be a way to list them in the .cabal file as being linked with the library.

Change History

Changed 6 years ago by ijones

  • difficulty set to easy

Changed 5 years ago by guest

  • priority changed from normal to high
  • platform set to Linux
  • ghcversion set to 6.2.1

Changed 4 years ago by duncan

  • priority changed from high to normal
  • difficulty changed from easy to normal

This needs a great deal more specification. When will these .o files be created for example?

Changed 4 years ago by guest

By a build hook, probably. Possibly by another hook, or outside of Cabal completely. All you have to do is to tell the linker to link them, though.

Ian

Changed 4 years ago by duncan

This would not work at all well with a dependency system since we want to know there how to generate or re-generate the .o files rather than just rely on sequencing. On the other hand in the new dependency system it should be easy to add extra ways of generating .o files in a hook. So I think we should wait and revisit this issue when developing the dependency framework.

Changed 4 years ago by duncan

  • platform Linux deleted
  • milestone changed from Cabal-1.4 to Cabal-2.0
Note: See TracTickets for help on using tickets.