Skip to content

gnuscripts/lalsuite_build.m4: warn if environment contains LDFLAGS

Karl Wette requested to merge ANU-CGA/lalsuite:warn-LDFLAGS-rpath into master

Description

Issue the following warning if LALSuite is built in an environment where LDFLAGS contains -Wl,-rpath options:

configure: error: 
************************************************************************
Your environment contains the flag
  LDFLAGS="... -Wl,-rpath,/path/to/somewhere ..."
This could result in a broken build. If the path pointed to by this flag
contains any LALSuite libraries, those libraries will be linked against
INSTEAD OF the locally built libraries. To build LALSuite correctly,
please remove this flag from your environment.
************************************************************************

Note: this will obviously not fix older LALSuite branches not containing this patch.

API Changes and Justification

Backwards Compatible Changes

  • This change does not modify any class/function/struct/type definitions in a public C header file or any Python class/function definitions
  • This change adds new classes/functions/structs/types to a public C header file or Python module

Backwards Incompatible Changes

  • This change modifies an existing class/function/struct/type definition in a public C header file or Python module
  • This change removes an existing class/function/struct/type from a public C header file or Python module

Review Status

cc @duncanmmacleod @adam-mercer

Merge request reports