Mentions légales du service

Skip to content

Fix the use of $(CFLAGS) and $(LDFLAGS) in makefiles.

LEFEVRE Vincent requested to merge vlefevre/core-math:cflags into master
  • When using -c, $(CFLAGS) should be used, not $(LDFLAGS).
  • When $(LDFLAGS) is used, $(CFLAGS) should normally be used too, because some C compiler flags may be needed for linking too. Note that this is the convention chosen by GNU Automake.

Note: flags related to OpenMP are not modified by these changes, but their use in the various makefiles is not consistent.

Merge request reports