On 9/2/24 8:13 AM, Waldek Hebisch wrote:
On Sun, Sep 01, 2024 at 10:32:39AM +0800, Qian Yun wrote:
There is this gentoo bug: https://bugs.gentoo.org/728048

The CFLAGS/LDFLAGS flags are not propagated properly in Makefiles.

I think the attached patch fixes this.

It looks OK assuming that we want behaviour that you implemented.
However, it is not 100% clear what CFLAGS/LDFLAGS should do.
For example, in principle for correct configuration we should
use the same flags both during configure and build.  So arguably
CFLAGS should be propagated from configure to makefiles.


If you export CFLAGS in environment variables, it is already picked
up by configure automatically.

- Qian

./configure --help

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  XMKMF       Path to xmkmf, Makefile generator for X Window System

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

--
You received this message because you are subscribed to the Google Groups "FriCAS - 
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/b412b753-11d3-4de8-8494-6e367da9ffd1%40gmail.com.

Reply via email to