Skip to content
Snippets Groups Projects
Commit 9a3cfb41 authored by Simon McVittie's avatar Simon McVittie
Browse files

build: Consistently sort dependencies in stack order


It's slightly preferable to list linker and compiler flags in stack
order, with the lowest in the stack first. This allows use of a
higher-level library from a non-standard prefix without also necessarily
picking up lower-level libraries from the same non-standard-prefix.
For example, if /path/to/json-glib also includes a copy of GLib, then

    -L/path/to/glib -lglib-2.0 -L/path/to/json-glib -ljson-glib-1.0

will link the GLib from /path/to/glib, but

    -L/path/to/json-glib -ljson-glib-1.0 -L/path/to/glib -lglib-2.0

will link both the GLib and the json-glib from /path/to/json-glib.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent fb9622d0
No related branches found
No related tags found
1 merge request!84Enumerate Mesa DRI modules and VA-API drivers
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment