2001-08-28 07:47:48 -07:00
|
|
|
#!/bin/sh
|
2011-07-27 07:17:02 -07:00
|
|
|
|
|
|
|
#########################################################################
|
|
|
|
# #
|
|
|
|
# OCaml #
|
|
|
|
# #
|
|
|
|
# Xavier Leroy, projet Cristal, INRIA Rocquencourt #
|
|
|
|
# #
|
|
|
|
# Copyright 2001 Institut National de Recherche en Informatique et #
|
|
|
|
# en Automatique. All rights reserved. This file is distributed #
|
|
|
|
# under the terms of the GNU Library General Public License, with #
|
|
|
|
# the special exception on linking described in file ../../LICENSE. #
|
|
|
|
# #
|
|
|
|
#########################################################################
|
|
|
|
|
2001-08-28 07:47:48 -07:00
|
|
|
# Determine if gcc calls the Solaris ld or the GNU ld
|
|
|
|
# Exit code is 0 for Solaris ld, 1 for GNU ld
|
|
|
|
|
|
|
|
echo "int main() { return 0; }" > hasgot.c
|
|
|
|
$cc -v -o tst hasgot.c 2>&1 | grep -s '^ld:' > /dev/null
|
|
|
|
exit $?
|