commit: 0fa242b9524b83556716c421c6bce7092bd3ea97
parent: 279deff06656558610efc971274e21c1530dddaa
author: Brian Callahan <bcallah@openbsd.org>
date: Thu, 25 Aug 2022 08:36:31 -0400
Add --cc and --cflags configure script flags to set CC and CFLAGS.
You can still do things the old way via environment variables.
1 file changed, 10 insertions(+)
diff --git a/configure b/configure
@@ -828,6 +828,12 @@ do
mandir=${opt#*=}
mandirset=1
;;
+ --cc=*)
+ CC=${opt#*=}
+ ;;
+ --cflags=*)
+ CFLAGS=${opt#*=}
+ ;;
--disable-curses|--enable-curses)
if [ "x$opt" = "x--disable-curses" ] ; then
curses=0
@@ -892,6 +898,10 @@ do
echo "Install executable to BINDIR [$bindir]"
printf " --mandir=MANDIR "
echo "Install manual pages to MANDIR [$mandir]"
+ printf " --cc=CC "
+ echo "Use specified C compiler [default=cc]"
+ printf " --cflags=CFLAGS "
+ echo "Use specified CFLAGS [default=\"-g -O2\"]"
printf " --enable-curses "
echo "Use curses library for screen clear [default=yes]"
printf " --enable-ksh "