mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 03:54:14 +08:00
fips/Makefile: $(CC) -dumpversion can't be used to identify gcc, HP C
doesn't return error code in reply to -dumpversion.
This commit is contained in:
parent
45b364ddab
commit
6f93fd5685
@ -103,7 +103,7 @@ fipscanister.o: fips_start.o $(LIBOBJ) $(FIPS_OBJ_LISTS) fips_end.o
|
||||
[ "$$os" = "AIX" ] && cflags="$$cflags -Wl,-bnoobjreorder"; \
|
||||
if [ -n "${FIPS_SITE_LD}" ]; then \
|
||||
set -x; ${FIPS_SITE_LD} -r -o $@ $$objs; \
|
||||
elif $(CC) -dumpversion >/dev/null 2>&1; then \
|
||||
elif ($(CC) -v 2>&1 | grep "gcc version")>/dev/null; then \
|
||||
set -x; $(CC) $$cflags -r -nostdlib -o $@ $$objs ; \
|
||||
else case "$$os" in \
|
||||
HP-UX|OSF1|SunOS) set -x; /usr/ccs/bin/ld -r -o $@ $$objs ;; \
|
||||
|
Loading…
Reference in New Issue
Block a user