gburd / szl

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

Build on Ubuntu natty missing intrinsics and extensions. #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Ubuntu natty has changed the default ld flags to include --as-needed, which 
only links in libraries detected as used:

https://lists.ubuntu.com/archives/ubuntu-devel/2010-November/031991.html

Consequently, szl's intrinsics and extensions libraries do not get linked in, 
and you you get all kinds of errors:

$ src/szl -e 'emit stdout <- string(fabs(-1.1));'
<commandline>:1: fabs undeclared

To fix, I need to make autoconf detect GNU ld and add -Wl,--no-as-needed to the 
LDFLAGS.

Original issue reported on code.google.com by dbh@google.com on 19 Nov 2010 at 7:16

GoogleCodeExporter commented 9 years ago
Fix added in r44.

Original comment by dbh@google.com on 25 Nov 2010 at 6:53

GoogleCodeExporter commented 9 years ago

Original comment by dbh@google.com on 4 Dec 2010 at 10:40