15,17 → 15,11 |
AC_CONFIG_MACRO_DIR([m4]) |
|
dnl default FLAGS, if none provided (note to self: ':=' is not portable) |
dnl if test -z "$CPPFLAGS" ; then |
dnl # NOTE: -pedantic will error when it encounters #warning because it |
dnl # it is a GCC extension, nautilus-extension uses #warning |
dnl # CPPFLAGS="-pedantic-errors" |
dnl fi |
if test -z "$CPPFLAGS" ; then |
CPPFLAGS="-pedantic-errors" |
fi |
if test -z "$CFLAGS" ; then |
# NOTE: Getting warnings about granular inclusion of nautilus-extension |
# headers and deprecated ones, coming from nautilus-extension, not my |
# code |
#CFLAGS="-Werror -Winline" |
CFLAGS="-Winline" |
CFLAGS="-Werror -Winline" |
fi |
|
dnl Extra flags always set (might be overridden by user's) |
36,10 → 30,6 |
CFLAGS="-I\"$PWD/src/caja-layer\" -O2 -Wall -std=gnu99 $CFLAGS" |
# -z relro -> read-only relocation ld flag |
LDFLAGS="-Wl,--as-needed -Wl,-z,relro $LDFLAGS" |
# FIXME: Getting multiple definitions for basic functions like read and getcwd, |
# not sure where they come from |
# --allow-multiple-definition sounds like a bad idea, though |
LDFLAGS="-Wl,--allow-multiple-definition $LDFLAGS" |
|
# libtool, DISABLE_STATIC should go before PROG_LIBTOOL |
AM_DISABLE_STATIC |