[goobox] added -fPIC -DPIC to CFLAGS
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goobox] added -fPIC -DPIC to CFLAGS
- Date: Wed, 18 Jan 2017 17:35:42 +0000 (UTC)
commit 3b044b89bf8fb5a0fcd1d4aef250209ad52c867f
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Jan 18 18:34:28 2017 +0100
added -fPIC -DPIC to CFLAGS
[bug #777448]
configure.ac | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 5f7026e..2e3119d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -47,6 +47,20 @@ AC_PATH_PROG(GLIB_COMPILE_RESOURCES, glib-compile-resources, glib-compile-resour
dnl ===========================================================================
+CFLAGS=${CFLAGS-:""}
+CFLAGS="$CFLAGS -fPIC -DPIC -Wl,--as-needed"
+
+AC_ARG_ENABLE(deprecated,
+ AS_HELP_STRING([--disable-deprecated], [do not use deprecated API]),
+ disable_deprecated=yes,
+ disable_deprecated=no)
+if test x$disable_deprecated = xyes; then
+ CFLAGS="$CFLAGS -DG_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES
-DGTK_DISABLE_SINGLE_INCLUDES"
+ CFLAGS="$CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED
-DGTK_DISABLE_DEPRECATED -DGST_DISABLE_DEPRECATED"
+fi
+
+dnl ===========================================================================
+
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug], [enable compilation of debugging messages]),
[case "${enableval}" in
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]