mirror of git://git.sysmocom.de/ofono
Add configure options for debug and PIE support
This commit is contained in:
parent
0b2c43c68e
commit
edaa239e92
|
@ -6,6 +6,7 @@ fi
|
||||||
|
|
||||||
./bootstrap && \
|
./bootstrap && \
|
||||||
./configure --enable-maintainer-mode \
|
./configure --enable-maintainer-mode \
|
||||||
|
--enable-debug \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--mandir=/usr/share/man \
|
--mandir=/usr/share/man \
|
||||||
--sysconfdir=/etc
|
--sysconfdir=/etc
|
||||||
|
|
17
configure.ac
17
configure.ac
|
@ -16,4 +16,21 @@ AC_PROG_CC
|
||||||
AC_PROG_CC_PIE
|
AC_PROG_CC_PIE
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],
|
||||||
|
[enable compiling with debugging information]), [
|
||||||
|
if (test "${enableval}" = "yes" &&
|
||||||
|
test "${ac_cv_prog_cc_g}" = "yes"); then
|
||||||
|
CFLAGS="$CFLAGS -g -O0"
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(pie, AC_HELP_STRING([--enable-pie],
|
||||||
|
[enable position independent executables flag]), [
|
||||||
|
if (test "${enableval}" = "yes" &&
|
||||||
|
test "${ac_cv_prog_cc_pie}" = "yes"); then
|
||||||
|
CFLAGS="$CFLAGS -fPIE"
|
||||||
|
LDFLAGS="$LDFLAGS -pie"
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
||||||
AC_OUTPUT(Makefile)
|
AC_OUTPUT(Makefile)
|
||||||
|
|
Loading…
Reference in New Issue