Relax check for gcc package name in {cpp,pkgconfiglib}.req generators
This commit is contained in:
parent
cec71f3fbf
commit
6409cf5038
@ -103,7 +103,7 @@ CppReq()
|
||||
local srpm="${RPM_PACKAGE_NAME-}"
|
||||
[ -n "$srpm" ] || srpm=$(rpmquery --qf='%{SOURCERPM}' -f "$f" 2>/dev/null) || srpm=foo
|
||||
case "$srpm" in
|
||||
gcc | gcc-[345]* | gcc[345]* )
|
||||
gcc | gcc-[1-9]* | gcc[1-9]* )
|
||||
[ -n "$gcc" ] ||
|
||||
Verbose "$f: $PROG disabled for gcc"
|
||||
gcc=$srpm
|
||||
|
@ -27,7 +27,7 @@ PkgconfigLibReq()
|
||||
# Below we use "gcc -print-search-dirs" to determine library
|
||||
# search path. If we build gcc itself, then e.g. libgcj.pc
|
||||
# (with -lgcj inside) cannot be processed reliably.
|
||||
gcc | gcc-[345]* | gcc[345]* )
|
||||
gcc | gcc-[1-9]* | gcc[1-9]* )
|
||||
Verbose "$f: $PROG disabled for gcc"
|
||||
return 0 ;;
|
||||
esac
|
||||
|
Loading…
x
Reference in New Issue
Block a user