Bug 15954 - LDFLAGS is taken from environment not from R's Makeconf by 'R CMD config --ldflags'
Summary: LDFLAGS is taken from environment not from R's Makeconf by 'R CMD config --ld...
Status: NEW
Alias: None
Product: R
Classification: Unclassified
Component: Add-ons (show other bugs)
Version: R 3.1.1
Hardware: All Linux
: P5 enhancement
Assignee: R-core
URL:
Depends on:
Blocks:
 
Reported: 2014-08-30 11:46 UTC by a4pu
Modified: 2014-08-30 11:46 UTC (History)
0 users

See Also:


Attachments
Diff adding a line to look up LDFLAGS in Makeconf to config (332 bytes, text/plain)
2014-08-30 11:46 UTC, a4pu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description a4pu 2014-08-30 11:46:51 UTC
Created attachment 1653 [details]
Diff adding a line to look up LDFLAGS in Makeconf to config

When running R's config script to discover compilation flags ('R CMD config --ldflags') is returns MAIN_LDFLAGS, LDFLAGS, LIBR and LIBS (in case R is a shared lib). Only LDFLAGS is immediately taken from the environment variable, MAIN_LDFLAGS, LDFLAGS, LIBR and LIBS are taken from Makeconf first. I believe LDFLAGS should be looked up in Makeconf first as well, as taking it from the environment might lead to some package building issues. But maybe I miss the point of taking LDFLAGS from the environment alltogether.

If it is preferable to have config I believe this could be achieved by applying the attached patch to the config script.