New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix hardcoded 'g++' in Lcalc 1.23 [p9] #12681
Comments
Diff between the p9 and my p10. For reference / review only. |
Attachment: lcalc-1.23.p9-p10.diff.gz Diff between the (patched) Makefile of the p9 and the p10. For reference / review only. |
This comment has been minimized.
This comment has been minimized.
Author: Leif Leonhardy |
comment:1
Attachment: Lcalc-1.23-Makefile.p9-p10.diff.gz I've also attached a diff between the resulting Makefiles (p9 vs. p10), for review only of course. I apologize in case there are already pending changes to the Lcalc spkg; haven't searched for such (also since the p9 is quite new). |
comment:2
Same comment as on ratpoints: I think we should avoid adding patches unless absolutely necessary. The conditional assignment of (Using |
comment:3
Replying to @orlitzky:
Lcalc is a special case in many ways (cf. my reply on #12682), and we have to patch the Makefile anyway (since there's still no Michael Rubinstein would certainly be happy if we sent him some generic solution, but so far nobody found the time for such, as mentioned.
We already did so, IIRC... |
Reviewer: R. Andrew Ohana |
comment:4
works well and looks good! |
Changed keywords from spkg CC CXX C++ compiler hard-coded to rd2 spkg CC CXX C++ compiler hard-coded |
Merged: sage-5.0.beta9 |
The horrible
Makefile
still usesCC
for compiling C++ (as well as C), and hardcodes it tog++
.The updated spkg (p10) fixes this by using
$(CXX)
for compiling C++, and allows bothCC
andCXX
in theMakefile
to get overridden by their respective environment settings.New spkg: http://boxen.math.washington.edu/home/leif/Sage/spkgs/lcalc-1.23.p10.spkg
md5sum:
a37f527cbfeb24eef307574a5665c7a8 lcalc-1.23.p10.spkg
lcalc-1.23.p10 (Leif Leonhardy, March 17th 2012)
The (patched) Makefile now uses $(CXX) (which defaults to 'g++')
for compiling and linking C++, $(CC) (which defaults to 'gcc') for
compiling C, although the latter is [currently] hardly used.
See also "Special Update/Build Instructions" above. (We could now also
set
INSTALL_DIR
and use 'make install'...)CC: @rishikesha @jdemeyer @ohanar @orlitzky
Component: packages: standard
Keywords: rd2 spkg CC CXX C++ compiler hard-coded
Author: Leif Leonhardy
Reviewer: R. Andrew Ohana
Merged: sage-5.0.beta9
Issue created by migration from https://trac.sagemath.org/ticket/12681
The text was updated successfully, but these errors were encountered: