> The bug is probably that this is using LDFLAGS which comes too early to > see the references. Internal library references should be added to the > dependency list of the target. Good point.