summaryrefslogtreecommitdiff
path: root/ocamltest/getocamloptdefaultflags
blob: 8d835eed2fd5f55d5b6edb01bfc6541ebb716ee5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
#**************************************************************************
#*                                                                        *
#*                                 OCaml                                  *
#*                                                                        *
#*            Sebastien Hinderer, projet Gallium, INRIA Paris             *
#*                                                                        *
#*   Copyright 2016 Institut National de Recherche en Informatique et     *
#*     en Automatique.                                                    *
#*                                                                        *
#*   All rights reserved.  This file is distributed under the terms of    *
#*   the GNU Lesser General Public License version 2.1, with the          *
#*   special exception on linking described in the file LICENSE.          *
#*                                                                        *
#**************************************************************************

# This script provides command-line options to use by default
# when invoking ocamlopt

# It is used to add that disable annoying linker warnings on some versions
# of OpenBSD

case "$1" in
  i386-*-openbsd5.[5-9]*|i386-*-openbsd[6-9].*)
    echo "-ccopt -nopie";;
esac