ocaml/ocamltest/getocamloptdefaultflags

27 lines
1.3 KiB
Bash
Executable File

#!/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