[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: $abs_srcdir expansion
From: |
Peter Breitenlohner |
Subject: |
Re: $abs_srcdir expansion |
Date: |
Thu, 8 Jul 2010 18:41:48 +0200 (CEST) |
User-agent: |
Alpine 2.00 (LNX 1167 2008-08-23) |
On Thu, 8 Jul 2010, Stefano Sabatini wrote:
No, this will not work, because I need LDFLAGS to be defined during
configuration, ...
in that case you'll have to save CFLAGS, LDFLAGS, etc. and temporarily add
values based on $srcdir to be used during configure tests, and later restore
these flags and add values based on ${abs_srcdir} (unexpanded) to be used in
Makefile.
I would, however, use other means to define these flags for Makefile, e.g.,
specify
if <whatever>; then
xxxFLAGS='-I${abs_srcdir}/win32/pthread'
fi
AC_SUBST([xxxFLAGS])
in configure and use that variable in Makefile.
BTW: required flags as determined by configure should not go to CFLAGS,
because the user is entitled to use 'make CFLAGS=some_flags some_target'.
Using Automake they would typically go to AM_CFLAGS.
Regards
Peter Breitenlohner <address@hidden>