mirror of https://github.com/nirenjan/libx52.git
Add compiler details to bugreport
parent
5f4dfe4c01
commit
9e2e8cb8ff
|
@ -38,7 +38,7 @@ BUILT_SOURCES += version-info.h
|
|||
CLEANFILES += version-info.h
|
||||
|
||||
version-info.h: ${top_srcdir}/version-info
|
||||
${top_srcdir}/version-info ${top_srcdir} >$@
|
||||
CC=${CC} ${top_srcdir}/version-info ${top_srcdir} >$@
|
||||
|
||||
########################################################################
|
||||
# Include automake stubs
|
||||
|
|
|
@ -76,6 +76,7 @@ int main(int argc, char **argv)
|
|||
printf("Package version: %s\n", VERSION);
|
||||
printf("Build version: %s\n", BUILD_VERSION);
|
||||
printf("Built on: %s\n", BUILD_HOST);
|
||||
printf("Compiler: %s\n", BUILD_COMPILER);
|
||||
printf("Build date: %s\n", BUILD_DATE);
|
||||
printf("version-info %s\n", BUILD_VERSION_INFO_IDENT);
|
||||
|
||||
|
|
|
@ -35,5 +35,6 @@ cat <<EOM
|
|||
#define BUILD_VERSION "${DESCRIBE}"
|
||||
#define BUILD_DATE "$(date +%Y-%m-%dT%H:%M:%S%z)"
|
||||
#define BUILD_HOST "$(uname -a)"
|
||||
#define BUILD_COMPILER "$(${CC} --version | head -n1)"
|
||||
EOM
|
||||
echo '#define BUILD_VERSION_INFO_IDENT "$Id$"'
|
||||
|
|
Loading…
Reference in New Issue