nhorman / dropwatch

user space utility to interface to kernel dropwatch facility
GNU General Public License v2.0
632 stars 92 forks source link

Fix build without libtool #83

Closed ahans closed 1 year ago

ahans commented 1 year ago

When libtool is not installed, automake calls the linker with the library flags (-llib) before the object files. In order to successfully resolve symbols, the library flags need to come after any object file needing them. libtool does that correctly by itself, but when automake cannot rely on libtool, we need to tell it about libraries via mybin_LDADD instead of the global AM_LDFLAGS.

Fixes #82.

nhorman commented 1 year ago

I'm sorry, scratch that last comment (deleted), I completely misread the diff.