xiaoyin0208 / lz4

Automatically exported from code.google.com/p/lz4
0 stars 0 forks source link

no library built #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. No lz4.so library available

What is the expected output? What do you see instead?

More of a feature request, I suppose. I'd fork it and make a pull request if 
you were on github:) I'd like to be able to link to lz4.so from Haskell.

Original issue reported on code.google.com by mwot...@gmail.com on 6 Jun 2012 at 9:36

GoogleCodeExporter commented 8 years ago
I suspect this can be solved on the makefile side, by writing a new config 
option to generate libraries.
I guess i will need some help on this one, as my last attempts were not so 
successful.

Original comment by yann.col...@gmail.com on 6 Jun 2012 at 12:08

GoogleCodeExporter commented 8 years ago
It's a two line change - I'll send it tomorrow.

Sent from my iPad

Original comment by mwot...@gmail.com on 6 Jun 2012 at 12:16

GoogleCodeExporter commented 8 years ago
so, I added this:

ADD_LIBRARY(lz4 SHARED ${LZ4_SRCS})
SET_TARGET_PROPERTIES(lz4 PROPERTIES PREFIX "lib")

install(TARGETS lz4 LIBRARY DESTINATION "./")

the library gets built properly, but gets put into /usr/local rather than 
/usr/local/lib - not quite sure how to fix that.

Original comment by mwot...@gmail.com on 7 Jun 2012 at 1:21

GoogleCodeExporter commented 8 years ago
Thanks for suggestion Mark

Original comment by yann.col...@gmail.com on 7 Jun 2012 at 9:18

GoogleCodeExporter commented 8 years ago
I've tried to find guidance about generating library, but couldn't find anyone 
with enough confidence in this methodology.

It seems more complex expected...

Original comment by yann.col...@gmail.com on 10 Jun 2012 at 2:07

GoogleCodeExporter commented 8 years ago
This is an enhancement, not a defect.

Original comment by yann.col...@gmail.com on 26 Jun 2012 at 7:38