author | Vincent Bernat <vincent@bernat.im> | |
Fri, 23 Jan 2015 10:57:03 +0000 (11:57 +0100) | ||
committer | Vincent Bernat <Vincent.Bernat@exoscale.ch> | |
Fri, 23 Jan 2015 11:01:41 +0000 (12:01 +0100) | ||
commit | 35d951756b0e05db90a7ce530fb7318917ab09ed | |
tree | 1291fb38d1548b6e3b6d9ffb43b75ef29eed250f | tree | snapshot |
parent | ef77268059b78e11226a23b72f500238e83d399a | commit | diff |
libstatgrab: fix detection of libstatgrab >= 0.90
Ensure linking is done after compilation of the test program, otherwise
symbols cannot be found. `LDFLAGS` and `CFLAGS` are placed before the
test program on gcc command line while `LIBS` is placed after. Even if
in our case, `LDFLAGS` also contain the lib, being put before the
program while the linking phase is done with the same command leads to
`sg_init()` never found which is misinterpreted as requiring an
argument.
Ensure linking is done after compilation of the test program, otherwise
symbols cannot be found. `LDFLAGS` and `CFLAGS` are placed before the
test program on gcc command line while `LIBS` is placed after. Even if
in our case, `LDFLAGS` also contain the lib, being put before the
program while the linking phase is done with the same command leads to
`sg_init()` never found which is misinterpreted as requiring an
argument.
configure.ac | diff | blob | history |