summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorGabriel Scherer <gabriel.scherer@gmail.com>2014-05-02 16:35:48 +0000
committerGabriel Scherer <gabriel.scherer@gmail.com>2014-05-02 16:35:48 +0000
commitd84f8be74c430d896f446d9ebf819568c1ab264c (patch)
tree7b04984759049d47a3ae933b7651c1c85a7c458a /configure
parentf0b0c82b6fe9e54240eca39264ff9f0a4cacc948 (diff)
downloadocaml-d84f8be74c430d896f446d9ebf819568c1ab264c.tar.gz
configure: fix as/aspp for FreeBSD (works for both gcc and clang)
(Patch by Andrew Ray) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14727 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure b/configure
index f2d312d558..58b1143840 100755
--- a/configure
+++ b/configure
@@ -886,8 +886,10 @@ case "$arch,$system" in
sparc,solaris) as="${TOOLPREF}as"
case "$cc" in
*gcc*) aspp="${TOOLPREF}gcc -c";;
- *) aspp="${TOOLPREF}as -P";;
+ *) aspp="${TOOLPREF}as -P";;
esac;;
+ *,freebsd) as="${TOOLPREF}as"
+ aspp="${TOOLPREF}cc -c";;
amd64,*|arm,*|arm64,*|i386,*|power,bsd*|sparc,*)
as="${TOOLPREF}as"
aspp="${TOOLPREF}gcc -c";;