colis-anr / morbig

A static parser for POSIX Shell
Other
190 stars 8 forks source link

Fix C example Makefile for Ubuntu #61

Closed loganrosen closed 5 years ago

loganrosen commented 5 years ago

This partially fixes #59. Ubuntu uses ld --as-needed by default, which requires that library be placed after the objects that need them. I've changed the order of the linking arguments accordingly, since libmorbigc.a requires -lm and -ldl (now to the right of it).

yurug commented 5 years ago

Thank you @loganrosen !