[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-devel] [bug #57057] BuildProgram not using environment LDFLAGS
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-devel] [bug #57057] BuildProgram not using environment LDFLAGS or CPPFLAGS |
Date: |
Mon, 14 Oct 2019 09:00:33 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0 |
URL:
<https://savannah.gnu.org/bugs/?57057>
Summary: BuildProgram not using environment LDFLAGS or
CPPFLAGS
Project: GNU Astronomy Utilities
Submitted by: makhlaghi
Submitted on: Mon 14 Oct 2019 02:00:31 PM BST
Category: BuildProgram
Severity: 3 - Normal
Item Group: Crash
Status: None
Privacy: Public
Assigned to: makhlaghi
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
While trying to package Buildprogram in Conda, BuildProgram's test in `make
check' failed for macOS. This is because the conda environment highly
configures the linking of standard builds on macOS as shown below:
LDFLAGS=-Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs
-Wl,-rpath,$PREFIX/lib -L$PREFIX/lib
But because of failures with special flags on other systems (see bug #54346),
BuildProgram only keeps the `-L' options from the input `LDFLAGS' environment
in its configuration file.
To fix this problem, and generally, give the users the ability to control the
build better, BuildProgram also needs to include the LDFLAGS and CPPFLAGS
environment variables.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57057>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [gnuastro-devel] [bug #57057] BuildProgram not using environment LDFLAGS or CPPFLAGS,
Mohammad Akhlaghi <=