gpt_build_config creates a file in it's current directory named
gpt_build_temp.sh that contains a list of necessary flags assembled from
the build environment metadata of the packages on which the source metadata
depends.
This scanning is done recursively to cover the entire dependency tree.
This script was initially inspired by the shell script gnome_config.
LINK ORDER
The flag list returned by gpt_build_config is assembled in
dependent order. A dependency between two libraries occurs when one
library needs the symbols of another library in order to link
correctly. For most linkers the library providing the symbols has to
be linked after the library that needs the symbols. For
example, from the line:
-L/opt/Xpm/lib -lXpm -L/usr/lib/X11 -lXm -lX
gpt_build_config assumes that the library Xpm is dependent on Xm which in turn is dependent on X. In addition, gpt_build_config assumes that Xpm is located in /opt/Xpm/lib and Xm and X are both located in /usr/lib/X11.
BUGS
Circular dependencies between libraries are not supported.
AUTHOR
Michael Bletzinger <mbletzin.ncsa.uiuc.edu> and Eric Blau
<eblau.ncsa.uiuc.edu>