Danath / gyp

Automatically exported from code.google.com/p/gyp
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Library name deduplication fails on Linux #419

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The make generator runs gyp.common.uniquer() on the library output. This 
removes duplicate link library flags. However, if you have multiple static 
libraries all depend on another library (e.g. libpng depends on libz, and 
libcurl depends on libz as well), it will remove the second occurrence of 
"-lz". This leads to link errors because the linker can't find the symbols in 
libz that it needs for curl because we already previously linked -lz for libpng.

Original issue reported on code.google.com by m...@kkaefer.com on 22 Apr 2014 at 8:12

GoogleCodeExporter commented 9 years ago
(Code line in question is at 
https://code.google.com/p/gyp/source/browse/trunk/pylib/gyp/generator/make.py#14
49)

Original comment by m...@kkaefer.com on 22 Apr 2014 at 8:14