This is an archive of the discontinued LLVM Phabricator instance.

[test-suite] Propagate LDFLAGS variable to executable's LINK_FLAGS property
AbandonedPublic

Authored by tra on Apr 22 2016, 11:35 AM.

Details

Summary

... which is better match for LDFLAGS which may have options other than -l that should appear on linker command line earlier.

Diff Detail

Event Timeline

tra updated this revision to Diff 54685.Apr 22 2016, 11:35 AM
tra retitled this revision from to [test-suite] Propagate LDFLAGS variable to executable's LINK_FLAGS property.
tra updated this object.
tra added reviewers: MatzeB, jmolloy.
tra added a subscriber: llvm-commits.
MatzeB edited edge metadata.Apr 22 2016, 11:46 AM

We had r703aad1d specifically because people needed the -l flags to come after the object files. What sort of flags need to come earlier?

We had r703aad1d specifically because people needed the -l flags to come after the object files. What sort of flags need to come earlier?

I mean r263235 :)

MatzeB added a subscriber: mcrosier.
tra abandoned this revision.Apr 22 2016, 1:00 PM

We had r703aad1d specifically because people needed the -l flags to come after the object files. What sort of flags need to come earlier?

Good point.

I was porting some non-cmake build into the test-suite and wanted to arrange linker flags just so with one object linked before .o files built by cmake from sources. I've figured out a way to do what I wanted using standard cmake features since then, so I don't depend on this change.