Skip to content

Commit

Permalink
Fix SBOM glibc and gcc version info
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Leonard <anleonar@redhat.com>
  • Loading branch information
andrew-m-leonard committed Aug 4, 2023
1 parent 26a2c71 commit 4dc6265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ echo $CC
echo $CC
local SYSROOT_CFLAGS=$(grep "^SYSROOT_CFLAGS :=" ${BUILD_CONFIG[WORKSPACE_DIR]}/${BUILD_CONFIG[WORKING_DIR]}/${BUILD_CONFIG[OPENJDK_SOURCE_DIR]}/build/*/spec.gmk | tr -s " " | cut -d" " -f3-)
echo $SYSROOT_CFLAGS

echo "#include <features.h>" | $CC $SYSROOT_CFLAGS -dM -E - 2>&1
local GLIBC_MAJOR=$(echo "#include <features.h>" | $CC $SYSROOT_CFLAGS -dM -E - 2>&1 | tr -s " " | grep "#define __GLIBC__" | cut -d" " -f3)
local GLIBC_MINOR=$(echo "#include <features.h>" | $CC $SYSROOT_CFLAGS -dM -E - 2>&1 | tr -s " " | grep "#define __GLIBC_MINOR__" | cut -d" " -f3)
local GLIBC_VERSION="${GLIBC_MAJOR}.${GLIBC_MINOR}"
Expand Down

0 comments on commit 4dc6265

Please sign in to comment.