Skip to content
This repository was archived by the owner on Apr 26, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/Makefile.template
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ CAMLOPTLINK="NATIVECAMLC"
CAMLMKTOP="CAMLMKTOPEXEC"

# Caml flags
CAMLFLAGS=-rectypes CAMLANNOTATEFLAG
CAMLFLAGS=-unsafe-string -rectypes CAMLANNOTATEFLAG

# Compilation debug flags
CAMLDEBUG=COQDEBUGFLAG
Expand Down
27 changes: 17 additions & 10 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -532,16 +532,23 @@ if [ "$usecamlp5" = "yes" ]; then
echo "Configuration script failed!"
exit 1
fi
elif [ -f "${CAMLLIB}/camlp5/${CAMLP4MOD}.cma" ]; then
CAMLP4LIB=+camlp5
FULLCAMLP4LIB=${CAMLLIB}/camlp5
elif [ -f "${CAMLLIB}/site-lib/${CAMLP4MOD}.cma" ]; then
CAMLP4LIB=+site-lib/camlp5
FULLCAMLP4LIB=${CAMLLIB}/site-lib/camlp5
else
echo "Objective Caml $CAMLVERSION found but no Camlp5 installed."
echo "Configuration script failed!"
exit 1
# Beware of the final \r in Win32
camlp5dir="$(camlp5 -where | tr -d '\r')"
if [ "$camlp5dir" != "" ]; then
CAMLP4LIB=$camlp5dir
FULLCAMLP4LIB=$camlp5dir
elif [ -f "${CAMLLIB}/camlp5/${CAMLP4MOD}.cma" ]; then
CAMLP4LIB=+camlp5
FULLCAMLP4LIB=${CAMLLIB}/camlp5
elif [ -f "${CAMLLIB}/site-lib/${CAMLP4MOD}.cma" ]; then
CAMLP4LIB=+site-lib/camlp5
FULLCAMLP4LIB=${CAMLLIB}/site-lib/camlp5
else
echo "Objective Caml $CAMLVERSION found but no Camlp5 installed."
echo "Configuration script failed!"
exit 1
fi
fi

camlp4oexec=`echo "$camlp4oexec" | tr 4 5`
Expand Down Expand Up @@ -905,7 +912,7 @@ case $coqrunbyteflags_spec/$local/$custom_spec/$CUSTOM_OS in
*/true/*/*) COQRUNBYTEFLAGS="-dllib -lcoqrun -dllpath '$COQTOP'/kernel/byterun";;
*)
COQRUNBYTEFLAGS="-dllib -lcoqrun -dllpath '$LIBDIR'"
BUILDLDPATH="export CAML_LD_LIBRARY_PATH='$COQTOP'/kernel/byterun";;
BUILDLDPATH="export CAML_LD_LIBRARY_PATH='$COQTOP'/kernel/byterun:$CAML_LD_LIBRARY_PATH";;
esac
case $coqtoolsbyteflags_spec/$custom_spec/$CUSTOM_OS in
yes/*/*) COQTOOLSBYTEFLAGS="$coqtoolsbyteflags";;
Expand Down