taskGNU Astronomy Utilities - Tasks: task #14157, Installed script for automatic...


You are not allowed to post comments on this tracker with your current authentication level.

task #14157: Installed script for automatic linking using Libtool

Submitted by:  Mohammad Akhlaghi <makhlaghi>
Submitted on:  Fri 16 Sep 2016 05:34:55 PM UTC  
Should Start On: Fri 16 Sep 2016 03:00:00 PM UTCShould be Finished on: Fri 16 Sep 2016 03:00:00 PM UTC
Category: LibrariesPriority: 5 - Normal
Item Group: EnhancementStatus: Postponed
Privacy: PublicPercent Complete: 30%
Assigned to: NoneOpen/Closed: Open
Effort: 0.00

Fri 16 Sep 2016 05:34:55 PM UTC, original submission:

With a recent commit, the "Automatic linking script" subsection was added to the "Libraries". A small shell function is introduced in this section for using Libtool to automatically link with all the necessary libraries Gnuastro depends on. The function is shown below, (to be put in `.bashrc' and after correcting PREFIX)

With this shell function instead of running something like this (in the extreme case where all libraries would be necessary):

You can just run (see the subsection for a little more detailed explanation):

Libtool's `libgnuastro.la' has all the necessary information for correct linking, we (the user) doesn't have to memorize them (or look them up in the manual).

Here, I am proposing to create this script when running `make install' and installing it along with the rest of Gnuastro. In the installed script we can use environment variables like `CPPFLAGS', `LDADD' or etc, along with all the extra information that `./configure' has found (like the compiler) to allow people to build small Gnuastro programs much more easier.

Mohammad Akhlaghi <makhlaghi>
Project Administrator


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by makhlaghi (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    No Changes Have Been Made to This Item

    Back to the top

    Powered by Savane 3.1-cleanup1